mirror of https://github.com/status-im/consul.git
Bring back edit-route for peerings
This commit is contained in:
parent
686e0f5ad4
commit
e2ca73ecbe
|
@ -1,30 +1,46 @@
|
||||||
(routes => routes({
|
((routes) =>
|
||||||
|
routes({
|
||||||
dc: {
|
dc: {
|
||||||
peers: {
|
peers: {
|
||||||
_options: {
|
_options: {
|
||||||
path: '/peers'
|
path: "/peers",
|
||||||
},
|
},
|
||||||
index: {
|
index: {
|
||||||
_options: {
|
_options: {
|
||||||
path: '/',
|
path: "/",
|
||||||
queryParams: {
|
queryParams: {
|
||||||
sortBy: 'sort',
|
sortBy: "sort",
|
||||||
state: 'state',
|
state: "state",
|
||||||
searchproperty: {
|
searchproperty: {
|
||||||
as: 'searchproperty',
|
as: "searchproperty",
|
||||||
empty: [['Name', 'ID']],
|
empty: [["Name", "ID"]],
|
||||||
},
|
},
|
||||||
search: {
|
search: {
|
||||||
as: 'filter',
|
as: "filter",
|
||||||
replace: true,
|
replace: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
edit: {
|
||||||
|
_options: {
|
||||||
|
path: "/:name",
|
||||||
|
},
|
||||||
|
addresses: {
|
||||||
|
_options: {
|
||||||
|
path: "/addresses",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}))(
|
},
|
||||||
(json, data = (typeof document !== 'undefined' ? document.currentScript.dataset : module.exports)) => {
|
},
|
||||||
|
},
|
||||||
|
}))(
|
||||||
|
(
|
||||||
|
json,
|
||||||
|
data = typeof document !== "undefined"
|
||||||
|
? document.currentScript.dataset
|
||||||
|
: module.exports
|
||||||
|
) => {
|
||||||
data[`routes`] = JSON.stringify(json);
|
data[`routes`] = JSON.stringify(json);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue