2019-10-23 12:39:32 -04:00
|
|
|
import Route from "@ember/routing/route";
|
2024-03-06 12:05:11 -05:00
|
|
|
import { service } from "@ember/service";
|
2023-10-10 14:38:59 -04:00
|
|
|
import AdminPlugin from "admin/models/admin-plugin";
|
2023-03-15 09:17:51 -04:00
|
|
|
|
|
|
|
export default class AdminPluginsRoute extends Route {
|
2023-07-18 15:52:55 -04:00
|
|
|
@service router;
|
|
|
|
|
2024-07-05 16:25:42 -04:00
|
|
|
async model() {
|
|
|
|
const plugins = await this.store.findAll("plugin");
|
|
|
|
return plugins.map((plugin) => AdminPlugin.create(plugin));
|
2023-03-15 09:17:51 -04:00
|
|
|
}
|
|
|
|
}
|