Refactor API under /auth/api

This commit is contained in:
Leo Vasanko
2025-09-02 14:32:19 -06:00
parent 859cc9ed41
commit 312d23b79a
7 changed files with 208 additions and 240 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ const copyLink = async (event) => {
onMounted(async () => {
try {
const response = await fetch('/auth/create-link', { method: 'POST' })
const response = await fetch('/auth/api/create-link', { method: 'POST' })
const result = await response.json()
if (result.detail) throw new Error(result.detail)
+1 -1
View File
@@ -9,7 +9,7 @@
:created-at="authStore.userInfo.user.created_at"
:last-seen="authStore.userInfo.user.last_seen"
:loading="authStore.isLoading"
update-endpoint="/auth/user/display-name"
update-endpoint="/auth/api/user/display-name"
@saved="authStore.loadUserInfo()"
/>