2018-06-15 11:03:24 -04:00
|
|
|
import RestAdapter from "discourse/adapters/rest";
|
2015-04-27 11:56:07 -04:00
|
|
|
|
|
|
|
export default function buildPluginAdapter(pluginName) {
|
|
|
|
return RestAdapter.extend({
|
2015-06-30 12:14:22 -04:00
|
|
|
pathFor(store, type, findArgs) {
|
2018-06-15 11:03:24 -04:00
|
|
|
return (
|
|
|
|
"/admin/plugins/" + pluginName + this._super(store, type, findArgs)
|
|
|
|
);
|
2015-04-27 11:56:07 -04:00
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|