Bring back edit-route for peerings

This commit is contained in:
Michael Klein 2022-10-05 12:06:55 +02:00
parent 686e0f5ad4
commit e2ca73ecbe
1 changed files with 36 additions and 20 deletions

View File

@ -1,30 +1,46 @@
(routes => routes({ ((routes) =>
dc: { routes({
peers: { dc: {
_options: { peers: {
path: '/peers'
},
index: {
_options: { _options: {
path: '/', path: "/peers",
queryParams: { },
sortBy: 'sort', index: {
state: 'state', _options: {
searchproperty: { path: "/",
as: 'searchproperty', queryParams: {
empty: [['Name', 'ID']], sortBy: "sort",
state: "state",
searchproperty: {
as: "searchproperty",
empty: [["Name", "ID"]],
},
search: {
as: "filter",
replace: true,
},
}, },
search: { },
as: 'filter', },
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);
} }
); );