mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 12:33:50 +08:00
14 lines
357 B
JavaScript
14 lines
357 B
JavaScript
import Route from "@ember/routing/route";
|
|
import { service } from "@ember/service";
|
|
import AdminPlugin from "admin/models/admin-plugin";
|
|
|
|
export default class AdminPluginsRoute extends Route {
|
|
@service router;
|
|
|
|
model() {
|
|
return this.store
|
|
.findAll("plugin")
|
|
.then((plugins) => plugins.map((plugin) => AdminPlugin.create(plugin)));
|
|
}
|
|
}
|