Initial vue frontend
This commit is contained in:
17
frontend-vue/src/router/index.ts
Normal file
17
frontend-vue/src/router/index.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import type { RouteRecordRaw } from 'vue-router'
|
||||
import MainView from '@/views/MainView.vue'
|
||||
import AuthView from '@/views/AuthView.vue'
|
||||
|
||||
export const routes: RouteRecordRaw[] = [
|
||||
{
|
||||
path: '/',
|
||||
name: 'main',
|
||||
component: MainView,
|
||||
meta: { requiresAuth: true }
|
||||
},
|
||||
{
|
||||
path: '/auth',
|
||||
name: 'auth',
|
||||
component: AuthView
|
||||
}
|
||||
]
|
Reference in New Issue
Block a user