mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
Accounts and login.
This commit is contained in:
parent
f3f0ad15f2
commit
49a55b40b4
22 changed files with 347 additions and 172 deletions
10
lib/web.js
Normal file
10
lib/web.js
Normal file
|
|
@ -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));
|
||||
Loading…
Add table
Add a link
Reference in a new issue