Files
fete/frontend/src/router/index.ts
nitrix 84feeb9997 Implement event creation frontend (EventCreateView)
Form with client-side validation, server error handling, aria-invalid/
aria-describedby for a11y, localStorage persistence via useEventStorage
composable. Routes for /create and /events/:token.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-05 10:56:59 +01:00

26 lines
563 B
TypeScript

import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
{
path: '/',
name: 'home',
component: HomeView,
},
{
path: '/create',
name: 'create-event',
component: () => import('../views/EventCreateView.vue'),
},
{
path: '/events/:token',
name: 'event',
component: () => import('../views/EventStubView.vue'),
},
],
})
export default router