mirror of
https://github.com/status-im/consul.git
synced 2025-02-27 04:40:41 +00:00
- Simplifies how we 'import' our configuration files a little in order to make them more grokable. - Starts to exclude files based on explicit configuration rather than convention. - Adds the first instance of us being able to select an implementation (of multiple) of a component at runtime.
41 lines
908 B
JavaScript
41 lines
908 B
JavaScript
(routes => routes({
|
|
dc: {
|
|
nspaces: {
|
|
_options: {
|
|
path: '/namespaces',
|
|
abilities: ['read nspaces'],
|
|
},
|
|
index: {
|
|
_options: {
|
|
path: '/',
|
|
queryParams: {
|
|
sortBy: 'sort',
|
|
searchproperty: {
|
|
as: 'searchproperty',
|
|
empty: [['Name', 'Description', 'Role', 'Policy']],
|
|
},
|
|
search: {
|
|
as: 'filter',
|
|
replace: true,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
edit: {
|
|
_options: { path: '/:name' },
|
|
},
|
|
create: {
|
|
_options: {
|
|
template: '../edit',
|
|
path: '/create',
|
|
abilities: ['create nspaces'],
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}))(
|
|
(json, data = (typeof document !== 'undefined' ? document.currentScript.dataset : module.exports)) => {
|
|
data[`routes`] = JSON.stringify(json);
|
|
}
|
|
);
|