2024-11-02 18:16:32 +00:00
|
|
|
import { createRouter, createWebHistory } from 'vue-router'
|
2024-11-03 19:42:55 +00:00
|
|
|
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: '/',
|
2024-11-03 19:42:55 +00:00
|
|
|
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
|