12 lines
310 B
JavaScript
12 lines
310 B
JavaScript
import { service } from "@ember/service";
|
|
import { ajax } from "discourse/lib/ajax";
|
|
import DiscourseRoute from "discourse/routes/discourse";
|
|
|
|
export default class DiscourseAiUsageRoute extends DiscourseRoute {
|
|
@service store;
|
|
|
|
model() {
|
|
return ajax("/admin/plugins/discourse-ai/ai-usage.json");
|
|
}
|
|
}
|