Account editing and change password.
This commit is contained in:
@@ -11,7 +11,12 @@ export const apiRequest = (method, url, body) =>
|
||||
if (res.ok) {
|
||||
return res.json();
|
||||
}
|
||||
return res.text();
|
||||
|
||||
if (['post', 'put', 'delete'].includes(method)) {
|
||||
return res.text();
|
||||
}
|
||||
|
||||
return null;
|
||||
});
|
||||
|
||||
function parseQuery(url, params = {}) {
|
||||
|
||||
Reference in New Issue
Block a user