Tag: routing
4 articles
- Routing and Pages
Master SvelteKit's file-based routing system. Learn dynamic routes, route groups, optional parameters, and layout patterns.
- Vue Guest Middleware: Redirecting Logged-In Users
A Vue 3 middleware function with TypeScript that redirects authenticated users away from guest-only pages like login and register.
- Vue Auth Middleware: Protecting Routes
A Vue 3 middleware function with TypeScript to check if a user is authenticated before displaying a protected route.
- Vue Middleware Pipelines: An Overview
Adding middleware to a Vue 3 SPA with TypeScript keeps code clean and provides a way to have multiple functions run before a route loads.