1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

Remove root slash from api url.

This commit is contained in:
Ferdinand Mütsch 2019-05-20 20:49:12 +02:00
parent a2095a6f79
commit 393a3e9801

View File

@ -97,7 +97,7 @@
function load(interval) { function load(interval) {
let apiKey = document.getElementById('apikey-input').value let apiKey = document.getElementById('apikey-input').value
fetch(`/api/summary?interval=${interval}&live=true`, { fetch(`api/summary?interval=${interval}&live=true`, {
method: 'GET', method: 'GET',
headers: { headers: {
'Accept': 'application/json', 'Accept': 'application/json',