curtain-web-api 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -195,7 +195,7 @@ class CurtainWebAPI {
195
195
  let headers = new axios_1.AxiosHeaders();
196
196
  headers["Accept"] = "application/json";
197
197
  headers["Content-Type"] = "multipart/form-data";
198
- return this.axiosInstance.put(this.baseURL + "curtain/" + this.user.id + "/", form, { headers: headers, responseType: "json" }).then((response) => {
198
+ return this.axiosInstance.post(this.baseURL + "curtain/", form, { headers: headers, responseType: "json" }).then((response) => {
199
199
  return response;
200
200
  });
201
201
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "curtain-web-api",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -182,7 +182,7 @@ export class CurtainWebAPI {
182
182
  let headers = new AxiosHeaders();
183
183
  headers["Accept"] = "application/json";
184
184
  headers["Content-Type"] = "multipart/form-data";
185
- return this.axiosInstance.put(this.baseURL + "curtain/" + this.user.id + "/", form, {headers: headers, responseType:"json"}).then((response) => {
185
+ return this.axiosInstance.post(this.baseURL + "curtain/", form, {headers: headers, responseType:"json"}).then((response) => {
186
186
  return response;
187
187
  });
188
188
  }