|
|
@@ -61,6 +61,7 @@ export default class AppContainer extends Container {
|
|
|
this.rendererInstances = {};
|
|
|
|
|
|
this.apiGet = this.apiGet.bind(this);
|
|
|
+ this.apiPut = this.apiGet.bind(this);
|
|
|
this.apiPost = this.apiPost.bind(this);
|
|
|
this.apiDelete = this.apiDelete.bind(this);
|
|
|
this.apiRequest = this.apiRequest.bind(this);
|
|
|
@@ -308,6 +309,10 @@ export default class AppContainer extends Container {
|
|
|
return this.apiRequest('get', path, { params });
|
|
|
}
|
|
|
|
|
|
+ async apiPut(path, params) {
|
|
|
+ return this.apiRequest('put', path, { params });
|
|
|
+ }
|
|
|
+
|
|
|
async apiPost(path, params) {
|
|
|
if (!params._csrf) {
|
|
|
params._csrf = this.csrfToken;
|