discourse-ai/assets/javascripts/discourse/admin-discourse-ai-plugin-route-map.js
2025-05-29 15:40:46 +10:00

37 lines
1,014 B
JavaScript

export default {
resource: "admin.adminPlugins.show",
path: "/plugins",
map() {
this.route("discourse-ai-agents", { path: "ai-agents" }, function () {
this.route("new");
this.route("edit", { path: "/:id/edit" });
});
this.route("discourse-ai-llms", { path: "ai-llms" }, function () {
this.route("new");
this.route("edit", { path: "/:id/edit" });
});
this.route("discourse-ai-tools", { path: "ai-tools" }, function () {
this.route("new");
this.route("edit", { path: "/:id/edit" });
});
this.route("discourse-ai-spam", { path: "ai-spam" });
this.route("discourse-ai-usage", { path: "ai-usage" });
this.route(
"discourse-ai-embeddings",
{ path: "ai-embeddings" },
function () {
this.route("new");
this.route("edit", { path: "/:id/edit" });
}
);
this.route("discourse-ai-features", { path: "ai-features" }, function () {
this.route("edit", { path: "/:id/edit" });
});
},
};