Accounts and login.
This commit is contained in:
1 parent
f3f0ad15f2
commit
49a55b40b4
22 files changed
+347
-172
No files matched your search
+10
@@ -0,0 +1,10 @@
|
||||
export const post = (url, params) =>
|
||||
fetch(url, {
|
||||
method: 'post',
|
||||
cache: 'no-cache',
|
||||
headers: {
|
||||
Accept: 'application/json',
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
body: JSON.stringify(params),
|
||||
}).then(res => (res.status === 200 ? res.json() : null));
|
||||
Reference in new issue
Block a user