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
+1 -1
View File
@@ -15,7 +15,7 @@
import MdiMoonAndStars from '~icons/mdi/moon-and-stars';
async function postSleep() {
const response = await fetch('/rest/sleep', {
const response = await fetch('/api/sleep', {
method: 'POST',
headers: {
Authorization: $page.data.features.security ? 'Bearer ' + $user.bearer_token : 'Basic'