Files
botfights/frontend/src/router.ts
T
DorianandClaude Opus 4.6 530f46f9cf feat: API docs page — tabbed webhook spec, scoring, challenges, tips
Fetches from /api/docs/webhook and renders as a styled tabbed page.
Added /docs route and DOCS nav link.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 00:26:12 +00:00

65 lines
1.3 KiB
TypeScript

import { createRouter, createWebHistory } from 'vue-router'
const routes = [
{
path: '/',
name: 'home',
component: () => import('./pages/HomePage.vue'),
},
{
path: '/arena',
name: 'arena',
component: () => import('./pages/ArenaPage.vue'),
},
{
path: '/arena/:fightId',
name: 'fight',
component: () => import('./pages/FightPage.vue'),
},
{
path: '/leaderboard',
name: 'leaderboard',
component: () => import('./pages/LeaderboardPage.vue'),
},
{
path: '/bot/:name',
name: 'bot-profile',
component: () => import('./pages/BotProfilePage.vue'),
},
{
path: '/play/:fightId',
name: 'human-fight',
component: () => import('./pages/HumanFightPage.vue'),
},
{
path: '/register',
name: 'register',
component: () => import('./pages/RegisterPage.vue'),
},
{
path: '/join',
name: 'join-bout',
component: () => import('./pages/JoinBoutPage.vue'),
},
{
path: '/schedule',
name: 'schedule',
component: () => import('./pages/SchedulePage.vue'),
},
{
path: '/sprites',
name: 'sprites',
component: () => import('./pages/SpritePreviewPage.vue'),
},
{
path: '/docs',
name: 'docs',
component: () => import('./pages/DocsPage.vue'),
},
]
export const router = createRouter({
history: createWebHistory(),
routes,
})