discourse/app/assets/javascripts/admin/addon/adapters/build-plugin.js

12 lines
291 B
JavaScript

import RestAdapter from "discourse/adapters/rest";
export default function buildPluginAdapter(pluginName) {
return RestAdapter.extend({
pathFor(store, type, findArgs) {
return (
"/admin/plugins/" + pluginName + this._super(store, type, findArgs)
);
},
});
}