fix spawn page link

This commit is contained in:
Min RK
2022-06-08 10:48:04 +02:00
parent 62d24341ca
commit 2e878fb5ca
3 changed files with 15 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
export const jhapiRequest = (endpoint, method, data) => {
let base_url = window.base_url,
let base_url = window.base_url || "/",
api_url = `${base_url}hub/api`;
return fetch(api_url + endpoint, {
method: method,