This commit is contained in:
2024-09-02 16:58:23 +02:00
parent c77503ed45
commit 1b0dc0f27d
52 changed files with 817 additions and 1379 deletions

View File

@@ -1,7 +1,7 @@
export default defineNuxtRouteMiddleware(async () => {
const { loggedIn } = useUserSession()
const { loggedIn, user } = await useUserSession()
if (loggedIn.value) {
return navigateTo('/')
return navigateTo(`/${user.value.username.toLowerCase()}`)
}
})