mirror of
https://github.com/discourse/discourse.git
synced 2025-02-22 22:16:25 +08:00

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