Files
botfights/frontend/src/router.ts
T

60 lines
1.2 KiB
TypeScript
Raw Normal View History

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'),
},
]
export const router = createRouter({
history: createWebHistory(),
routes,
})