Updates api path to /api

This commit is contained in:
Rune Harlyk
2024-04-23 21:50:50 +02:00
committed by Rune Harlyk
parent 9ca4381442
commit 0abe0b530c
34 changed files with 55 additions and 54 deletions
+2 -2
View File
@@ -36,7 +36,7 @@
async function scanNetworks() {
scanActive = true;
const scan = await fetch('/rest/scanNetworks', {
const scan = await fetch('/api/scanNetworks', {
method: 'GET',
headers: {
Authorization: $page.data.features.security ? 'Bearer ' + $user.bearer_token : 'Basic',
@@ -50,7 +50,7 @@
}
async function pollingResults() {
const response = await fetch('/rest/listNetworks', {
const response = await fetch('/api/listNetworks', {
method: 'GET',
headers: {
Authorization: $page.data.features.security ? 'Bearer ' + $user.bearer_token : 'Basic',