Skip to content

Commit

Permalink
Revert to old api path
Browse files Browse the repository at this point in the history
  • Loading branch information
aSouchereau committed May 29, 2024
1 parent 77d2621 commit d2f9daf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/composables/api/Album.ts
Original file line number Diff line number Diff line change
@@ -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);
Expand All @@ -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 };
}
2 changes: 1 addition & 1 deletion src/composables/api/Photo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
},)
Expand Down

0 comments on commit d2f9daf

Please sign in to comment.