mirror of
https://github.com/elk-zone/elk.git
synced 2024-12-05 03:59:59 +03:00
13 lines
303 B
TypeScript
13 lines
303 B
TypeScript
export default defineNuxtRouteMiddleware((to) => {
|
|
if (process.server)
|
|
return
|
|
if (to.path === '/signin/callback')
|
|
return
|
|
|
|
onMastoInit(() => {
|
|
if (isGuest.value)
|
|
return navigateTo(`/${currentServer.value}/public`)
|
|
if (to.path === '/')
|
|
return navigateTo('/home')
|
|
})
|
|
})
|