mirror of
https://github.com/discourse/discourse.git
synced 2024-12-19 18:23:46 +08:00
74349e17c9
This commit was generated using the ember-native-class-codemod along with a handful of manual updates
12 lines
298 B
JavaScript
12 lines
298 B
JavaScript
import RestAdapter from "discourse/adapters/rest";
|
|
|
|
export default function buildPluginAdapter(pluginName) {
|
|
return class extends RestAdapter {
|
|
pathFor(store, type, findArgs) {
|
|
return (
|
|
"/admin/plugins/" + pluginName + super.pathFor(store, type, findArgs)
|
|
);
|
|
}
|
|
};
|
|
}
|