Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-26 19:10:29 +01:00
56 Zeilen
1,3 KiB
Text
56 Zeilen
1,3 KiB
Text
|
export default {
|
||
|
resource: "admin",
|
||
|
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 });
|
||
|
|
||
|
this.route("adminWizardsManager", {
|
||
|
path: "/manager",
|
||
|
resetNamespace: true,
|
||
|
});
|
||
|
}
|
||
|
);
|
||
|
},
|
||
|
};
|