discourse-ai/assets/javascripts/discourse/admin-discourse-ai-plugin-route-map.js
Keegan George 4de39a07e5
FEATURE: Configure persona backed features in admin panel (#1245)
In this feature update, we add the UI for the ability to easily configure persona backed AI-features. The feature will still be hidden until structured responses are complete.
2025-04-10 08:16:31 -07:00

37 lines
1,018 B
JavaScript

export default {
resource: "admin.adminPlugins.show",
path: "/plugins",
map() {
this.route("discourse-ai-personas", { path: "ai-personas" }, 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" });
});
},
};