pilotwings/frontend/router.ts

20 lines
397 B
TypeScript
Raw Normal View History

2024-11-02 18:16:32 +00:00
import { createRouter, createWebHistory } from 'vue-router'
import Container from './views/Container.vue'
import Home from './views/Home.vue'
2024-11-02 18:16:32 +00:00
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
{
path: '/',
component: Home,
},
{
path: '/container/:name',
component: Container,
2024-11-02 18:16:32 +00:00
},
2024-11-02 21:43:27 +00:00
],
2024-11-02 18:16:32 +00:00
})
export default router