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

Failed to ignore revisions in .git-blame-ignore-revs.

12 lines
290 B
JavaScript
Raw Normal View History

2018-06-15 23:03:24 +08:00
import RestAdapter from "discourse/adapters/rest";
export default function buildPluginAdapter(pluginName) {
return RestAdapter.extend({
pathFor(store, type, findArgs) {
2018-06-15 23:03:24 +08:00
return (
"/admin/plugins/" + pluginName + this._super(store, type, findArgs)
);
}
});
}