New eveal #32

Merged
Sirttas merged 115 commits from new-eveal into main 2026-07-14 17:15:11 +02:00
Showing only changes of commit 45ed773119 - Show all commits
+4 -2
View File
@@ -17,10 +17,11 @@ const router = createRouter({
}); });
app.use(pinia); app.use(pinia);
app.use(router);
const authStore = useAuthStore(); const authStore = useAuthStore();
await authStore.bootstrap();
router.beforeEach(to => { router.beforeEach(to => {
if (!to.meta.public && !authStore.isAuthenticated) { if (!to.meta.public && !authStore.isAuthenticated) {
return {name: routeNames.home}; return {name: routeNames.home};
@@ -28,4 +29,5 @@ router.beforeEach(to => {
return true; return true;
}); });
authStore.bootstrap().finally(() => app.mount('#app')); app.use(router);
app.mount('#app');