2024-11-04 16:55:23 +01:00
|
|
|
import { createRouter, createWebHashHistory } from 'vue-router'
|
2024-11-03 23:10:21 +01:00
|
|
|
import Container from '../views/Container.vue'
|
|
|
|
import Home from '../views/Home.vue'
|
2024-11-04 17:31:04 +01:00
|
|
|
import Update from '../views/Update.vue'
|
2024-11-02 19:16:32 +01:00
|
|
|
|
|
|
|
const router = createRouter({
|
2024-11-04 16:55:23 +01:00
|
|
|
history: createWebHashHistory(import.meta.env.BASE_URL),
|
2024-11-02 19:16:32 +01:00
|
|
|
routes: [
|
|
|
|
{
|
|
|
|
path: '/',
|
2024-11-03 20:42:55 +01:00
|
|
|
component: Home,
|
|
|
|
},
|
2024-11-04 17:31:04 +01:00
|
|
|
{
|
|
|
|
path: '/show/:name',
|
|
|
|
component: Container,
|
|
|
|
},
|
2024-11-04 16:55:23 +01:00
|
|
|
{
|
|
|
|
path: '/new',
|
2024-11-04 17:31:04 +01:00
|
|
|
component: Update,
|
2024-11-04 16:55:23 +01:00
|
|
|
},
|
2024-11-03 20:42:55 +01:00
|
|
|
{
|
2024-11-04 17:31:04 +01:00
|
|
|
path: '/update/:name',
|
|
|
|
component: Update,
|
2024-11-02 19:16:32 +01:00
|
|
|
},
|
2024-11-02 22:43:27 +01:00
|
|
|
],
|
2024-11-02 19:16:32 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
export default router
|