@authenty/authapi-types 1.0.49 → 1.0.50
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.
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/index.ts +2 -2
package/dist/index.js
CHANGED
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1008,7 +1008,7 @@ export namespace AuthApi {
|
|
|
1008
1008
|
const fetchOptions: RequestInit = {
|
|
1009
1009
|
method,
|
|
1010
1010
|
headers: {
|
|
1011
|
-
'Content-Type': 'application/json',
|
|
1011
|
+
...(method!=='DELETE' ? {'Content-Type': 'application/json'} : {}),
|
|
1012
1012
|
...headers
|
|
1013
1013
|
},
|
|
1014
1014
|
credentials: 'include'
|
|
@@ -1309,7 +1309,7 @@ export namespace AuthApi {
|
|
|
1309
1309
|
return await this.request<responses.article.$articleId.PUT>('PUT', `article/${articleId}`, articleData);
|
|
1310
1310
|
},
|
|
1311
1311
|
delete: async (articleId: number) => {
|
|
1312
|
-
return await this.request<responses.article.$articleId.DELETE>('DELETE', `article/${articleId}`,
|
|
1312
|
+
return await this.request<responses.article.$articleId.DELETE>('DELETE', `article/${articleId}`,{});
|
|
1313
1313
|
}
|
|
1314
1314
|
},
|
|
1315
1315
|
|