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 { 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