mirror of
https://github.com/discourse/discourse.git
synced 2024-12-12 19:13:44 +08:00
48193767bf
Automatically generated by `eslint --fix` to satisfy the updated configuration
14 lines
367 B
JavaScript
14 lines
367 B
JavaScript
import Route from "@ember/routing/route";
|
|
import { inject as 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)));
|
|
}
|
|
}
|