2019-10-23 12:39:32 -04:00
|
|
|
import Route from "@ember/routing/route";
|
2023-07-18 15:52:55 -04:00
|
|
|
import { inject as 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;
|
|
|
|
|
2015-02-06 17:32:59 -05:00
|
|
|
model() {
|
2023-08-27 20:48:59 -04:00
|
|
|
return this.store
|
|
|
|
.findAll("plugin")
|
|
|
|
.then((plugins) => plugins.map((plugin) => AdminPlugin.create(plugin)));
|
2023-03-15 09:17:51 -04:00
|
|
|
}
|
|
|
|
}
|