From d2f9daf0aba076c2db091b527d7ac492a435bd3b Mon Sep 17 00:00:00 2001 From: aSouchereau Date: Wed, 29 May 2024 16:37:39 -0400 Subject: [PATCH] Revert to old api path --- src/composables/api/Album.ts | 4 ++-- src/composables/api/Photo.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/composables/api/Album.ts b/src/composables/api/Album.ts index 54eb0d6..ddc2840 100644 --- a/src/composables/api/Album.ts +++ b/src/composables/api/Album.ts @@ -1,7 +1,7 @@ import {useFetch} from "@vueuse/core"; export function useAlbums() { - const { isFetching, isFinished, error, data } = useFetch("/apiv1/Albums::get", { + const { isFetching, isFinished, error, data } = useFetch("/api/Albums::get", { afterFetch(ctx) { let albums = ctx.data.albums; albums = albums.concat(ctx.data.shared_albums); @@ -18,7 +18,7 @@ export function useAlbum(albumId: string) { const body = { albumID: albumId, } - const { isFetching, isFinished, error, data } = useFetch("/apiv1/Album::get").post(body).json(); + const { isFetching, isFinished, error, data } = useFetch("/api/Album::get").post(body).json(); return { isFetching, isFinished, error, data }; } diff --git a/src/composables/api/Photo.ts b/src/composables/api/Photo.ts index f371fe9..4f73331 100644 --- a/src/composables/api/Photo.ts +++ b/src/composables/api/Photo.ts @@ -7,7 +7,7 @@ export function useImage(photoId: string | undefined) { return ctx; }, } - const { isFetching, isFinished, error, data } = useFetch("/apiv1/Photo::get", options) + const { isFetching, isFinished, error, data } = useFetch("/api/Photo::get", options) .post({ photoId: photoId },)