discourse/app/assets/javascripts/admin/adapters/build-plugin.js
2020-09-04 13:42:47 +02:00

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