forked from mirrors/amnezia-wg-easy
use relative paths
This commit is contained in:
parent
bbd19b7a6f
commit
e7f4cc2d56
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue