1
0
Fork 0
discourse-custom-wizard-unl.../assets/javascripts/discourse/custom-wizard-admin-route-map.js.es6

65 Zeilen
1,5 KiB
Text

2017-09-23 04:34:07 +02:00
export default {
resource: "admin",
2017-09-23 04:34:07 +02:00
map() {
this.route(
"adminWizards",
{ path: "/wizards", resetNamespace: true },
function () {
this.route(
"adminWizardsWizard",
{ path: "/wizard/", resetNamespace: true },
function () {
this.route("adminWizardsWizardShow", {
path: "/:wizardId/",
resetNamespace: true,
});
}
);
this.route("adminWizardsCustomFields", {
path: "/custom-fields",
resetNamespace: true,
});
this.route(
"adminWizardsSubmissions",
{ path: "/submissions", resetNamespace: true },
function () {
this.route("adminWizardsSubmissionsShow", {
path: "/:wizardId/",
resetNamespace: true,
});
}
);
this.route(
"adminWizardsApi",
{ path: "/api", resetNamespace: true },
function () {
this.route("adminWizardsApiShow", {
path: "/:name",
resetNamespace: true,
});
}
);
this.route(
"adminWizardsLogs",
{ path: "/logs", resetNamespace: true },
function () {
this.route("adminWizardsLogsShow", {
path: "/:wizardId/",
resetNamespace: true,
});
}
);
this.route("adminWizardsManager", {
path: "/manager",
resetNamespace: true,
});
}
);
},
2017-09-23 04:34:07 +02:00
};