mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
10 lines
272 B
JavaScript
10 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);
|
|
}
|
|
});
|
|
}
|