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
+3 -3
View File
@@ -71,7 +71,7 @@
async function getWifiStatus() {
try {
const response = await fetch('/rest/wifiStatus', {
const response = await fetch('/api/wifiStatus', {
method: 'GET',
headers: {
Authorization: $page.data.features.security ? 'Bearer ' + $user.bearer_token : 'Basic',
@@ -87,7 +87,7 @@
async function getWifiSettings() {
try {
const response = await fetch('/rest/wifiSettings', {
const response = await fetch('/api/wifiSettings', {
method: 'GET',
headers: {
Authorization: $page.data.features.security ? 'Bearer ' + $user.bearer_token : 'Basic',
@@ -113,7 +113,7 @@
async function postWiFiSettings(data: WifiSettings) {
try {
const response = await fetch('/rest/wifiSettings', {
const response = await fetch('/api/wifiSettings', {
method: 'POST',
headers: {
Authorization: $page.data.features.security ? 'Bearer ' + $user.bearer_token : 'Basic',