forked from TWS/kalkutago
16 lines
531 B
TypeScript
16 lines
531 B
TypeScript
import { createRouter, createWebHistory } from 'vue-router'
|
|
import TableView from './views/TableView.vue'
|
|
import NewTrackView from './views/NewTrackView.vue'
|
|
|
|
const router = createRouter({
|
|
history: createWebHistory(),
|
|
routes: [
|
|
{ path: '/', component: TableView },
|
|
{ path: '/new-track', component: NewTrackView },
|
|
{ path: '/login', component: import('./views/Login.vue') }
|
|
// for other pages:
|
|
// {path: '/', component: import('./views/TableView.vue')}
|
|
]
|
|
})
|
|
|
|
export default router |