mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
Use API url relative to current path.
This commit is contained in:
parent
393a3e9801
commit
33ccb708f5
@ -97,7 +97,7 @@
|
||||
|
||||
function load(interval) {
|
||||
let apiKey = document.getElementById('apikey-input').value
|
||||
fetch(`api/summary?interval=${interval}&live=true`, {
|
||||
fetch(`${window.location.href}/api/summary?interval=${interval}&live=true`, {
|
||||
method: 'GET',
|
||||
headers: {
|
||||
'Accept': 'application/json',
|
||||
|
Loading…
Reference in New Issue
Block a user