mirror of
https://github.com/discourse/discourse.git
synced 2024-12-11 18:33:44 +08:00
12 lines
290 B
JavaScript
12 lines
290 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)
|
|
);
|
|
}
|
|
});
|
|
}
|