Skip to content

Commit

Permalink
use relative paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Emile Nijssen committed Jun 12, 2022
1 parent bbd19b7 commit e7f4cc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/www/js/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit e7f4cc2

Please sign in to comment.