pilotwings/frontend/router/index.ts

29 lines
568 B
TypeScript
Raw Normal View History

import { createRouter, createWebHashHistory } from 'vue-router'
2024-11-03 22:10:21 +00:00
import Container from '../views/Container.vue'
import Home from '../views/Home.vue'
import Update from '../views/Update.vue'
2024-11-02 18:16:32 +00:00
const router = createRouter({
history: createWebHashHistory(import.meta.env.BASE_URL),
2024-11-02 18:16:32 +00:00
routes: [
{
path: '/',
component: Home,
},
{
path: '/show/:name',
component: Container,
},
{
path: '/new',
component: Update,
},
{
path: '/update/:name',
component: Update,
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