Add test endpoint to verify auth subfolder works
All checks were successful
build-and-deploy / build (push) Successful in 9s
build-and-deploy / deploy (push) Successful in 3s

This commit is contained in:
2025-10-11 18:03:34 -06:00
parent 4d3aad3506
commit 2f625b95d0
2 changed files with 8 additions and 1 deletions

View File

@@ -3,7 +3,7 @@ const { loggedIn, user, clear } = useUserSession()
const logout = async () => {
await clear()
await navigateTo('/auth/logout')
await navigateTo('/api/auth/logout')
}
</script>

View File

@@ -0,0 +1,7 @@
/**
* Test endpoint
* Ruta: /api/auth/test
*/
export default defineEventHandler(() => {
return { message: 'Auth subfolder works!' }
})