nuxt-prawo-jazdy/middleware/exam.ts
NetMan 63121da4b7 postgres -> sqlite, pinia/middleware fix?
other smaller: little type fixes, little changes to ui - more readable category chooser
- result screen with correct, incorrect and chosen answers
little changes to readme
2025-12-13 16:07:23 +01:00

9 lines
206 B
TypeScript

export default defineNuxtRouteMiddleware(async () => {
const examStore = useExamStore();
if (examStore.end) {
return '/result';
}
if (examStore.category === '') {
return '/anomaly';
}
});