28 lines
555 B
JavaScript
Raw Normal View History

2023-03-31 17:17:59 +04:00
import { createApp } from 'vue'
import App from './App.vue'
import { createRouter, createWebHistory } from "vue-router"
2023-03-31 17:17:59 +04:00
import Auth from './components/Auth'
import AbiturMain from './components/AbiturMain'
const routes = [
{
path: '/',
component: Auth,
name: 'Auth'
},
{
path: '/abitur/:abiturId',
name: 'AbiturMain',
component: AbiturMain,
props: true
}
]
const router = createRouter({
routes,
history: createWebHistory()
})
createApp(App).use(router).mount('#app')