discourse/app/assets/javascripts/admin/addon/routes/admin-plugins.js
David Taylor 48193767bf DEV: Sort imports
Automatically generated by `eslint --fix` to satisfy the updated configuration
2023-10-10 21:46:54 +01:00

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)));
}
}