2023-03-31 17:17:59 +04:00
|
|
|
import { createApp } from 'vue'
|
|
|
|
import App from './App.vue'
|
2023-04-03 01:00:37 +04:00
|
|
|
import { createRouter, createWebHistory } from "vue-router"
|
2023-03-31 17:17:59 +04:00
|
|
|
|
2023-04-03 01:00:37 +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')
|