nuxt-prawo-jazdy/middleware/result.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

6 lines
175 B
TypeScript

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