mirror of
https://github.com/WeeJeWel/wg-easy.git
synced 2024-12-22 17:19:23 +08:00
use relative paths
This commit is contained in:
parent
bbd19b7a6f
commit
e7f4cc2d56
@ -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…
Reference in New Issue
Block a user