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