Browse Source

Update api.js

relative path
pull/150/head
jdeath 4 years ago
committed by GitHub
parent
commit
55ff614083
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/www/js/api.js

2
src/www/js/api.js

@ -6,7 +6,7 @@
class API { class API {
async call({ method, path, body }) { async call({ method, path, body }) {
const res = await fetch(`/api${path}`, { const res = await fetch(`api${path}`, {
method, method,
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',

Loading…
Cancel
Save