mirror of
https://github.com/gosticks/web.git
synced 2026-12-03 17:51:39 +00:00
Check if logged out for POST and DELETE requests
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
@@ -132,6 +132,7 @@ export const api = {
|
||||
headers: new Headers({ "Content-Type": "application/json" }),
|
||||
credentials: this.credentialType()
|
||||
})
|
||||
.then(api.checkIfLoggedOut)
|
||||
.then(api.convertJSON)
|
||||
.then(api.checkForErrors);
|
||||
},
|
||||
@@ -140,6 +141,7 @@ export const api = {
|
||||
method: "DELETE",
|
||||
credentials: this.credentialType()
|
||||
})
|
||||
.then(api.checkIfLoggedOut)
|
||||
.then(api.convertJSON)
|
||||
.then(api.checkForErrors);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user