mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 01:24:48 +08:00
13 lines
357 B
JavaScript
13 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;
|
|
|
|
async model() {
|
|
const plugins = await this.store.findAll("plugin");
|
|
return plugins.map((plugin) => AdminPlugin.create(plugin));
|
|
}
|
|
}
|