Account editing and change password.

This commit is contained in:
Mike Cao 2020-08-09 02:03:37 -07:00
parent b5cf9f8719
commit b392a51676
23 changed files with 230 additions and 102 deletions

View file

@ -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 = {}) {