mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
9 lines
272 B
JavaScript
9 lines
272 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);
|
|
}
|
|
});
|
|
}
|