Move /api/account to /api/auth/account
All checks were successful
/ build (push) Successful in 1m16s
/ deploy (push) Successful in 16s

An account refers to the user the active session is logged in as. As
such it doesn't make sense outside of the /auth API paths that deals
with the current authenticated user.  Move /api/account to
/api/auth/account to reflect this.
This commit is contained in:
Hornwitser 2025-05-31 21:44:19 +02:00
parent e7dc00db54
commit 04b9707272
6 changed files with 5 additions and 5 deletions

View file

@ -45,7 +45,7 @@ export const useAccountStore = defineStore("account", () => {
newIds = newIds.filter(newId => !filterIds.has(newId));
}
}
await $fetch("/api/account", {
await $fetch("/api/auth/account", {
method: "PATCH",
body: { interestedIds: newIds },
})