Browse Source

use relative paths

pull/282/head
Emile Nijssen 3 years ago
parent
commit
e7f4cc2d56
  1. 2
      src/www/js/api.js

2
src/www/js/api.js

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

Loading…
Cancel
Save