mirror of
https://github.com/Floriansylvain/SpaceMessenger.git
synced 2026-08-19 11:43:22 +02:00
initial commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
import GroupSelection from '@/views/GroupSelection.vue'
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
routes: [
|
||||
{
|
||||
path: '/',
|
||||
name: 'Home',
|
||||
component: GroupSelection
|
||||
},
|
||||
{
|
||||
path: '/group',
|
||||
name: 'Group',
|
||||
component: GroupSelection,
|
||||
// beforeEnter: (to, from) => {
|
||||
// return '/'
|
||||
// }
|
||||
},
|
||||
]
|
||||
})
|
||||
|
||||
export default router
|
||||
Reference in New Issue
Block a user