Added Redirect if User is not on Mobile Index

This commit is contained in:
2025-03-30 16:51:38 +02:00
parent 684f65250f
commit ff5593ebc5
2 changed files with 8 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
export default defineNuxtRouteMiddleware(async (to, _from) => {
const router = useRouter()
if(await useCapacitor().getIsPhone()) {
return router.push('/mobile')
}
})