25 lines
497 B
TypeScript
25 lines
497 B
TypeScript
import { createRouter, createWebHashHistory } from 'vue-router'
|
|
import Container from '../views/Container.vue'
|
|
import Home from '../views/Home.vue'
|
|
import New from '../views/New.vue'
|
|
|
|
const router = createRouter({
|
|
history: createWebHashHistory(import.meta.env.BASE_URL),
|
|
routes: [
|
|
{
|
|
path: '/',
|
|
component: Home,
|
|
},
|
|
{
|
|
path: '/new',
|
|
component: New,
|
|
},
|
|
{
|
|
path: '/container/:name',
|
|
component: Container,
|
|
},
|
|
],
|
|
})
|
|
|
|
export default router
|