feat(#5): use auth
This commit is contained in:
+9
-3
@@ -1,5 +1,11 @@
|
||||
import {RouteRecordRaw} from 'vue-router';
|
||||
|
||||
declare module 'vue-router' {
|
||||
interface RouteMeta {
|
||||
public?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
export const routeNames = {
|
||||
home: 'home',
|
||||
callback: 'callback',
|
||||
@@ -15,8 +21,8 @@ export const routeNames = {
|
||||
} as const;
|
||||
|
||||
export const routes: RouteRecordRaw[] = [
|
||||
{path: '/', name: routeNames.home, component: () => import('@/pages/Index.vue')},
|
||||
{path: '/callback', name: routeNames.callback, component: () => import('@/pages/Index.vue')},
|
||||
{path: '/', name: routeNames.home, component: () => import('@/pages/Index.vue'), meta: {public: true}},
|
||||
{path: '/callback', name: routeNames.callback, component: () => import('@/pages/Index.vue'), meta: {public: true}},
|
||||
|
||||
{path: '/ledgers', component: () => import('@/pages/Ledgers.vue'), children: [
|
||||
{path: '', component: () => import('@/pages/ledger/ListLedgers.vue')},
|
||||
@@ -52,5 +58,5 @@ export const routes: RouteRecordRaw[] = [
|
||||
{path: '/tools', component: () => import('@/pages/Tools.vue')},
|
||||
|
||||
{path: '/characters', component: () => import('@/pages/Characters.vue')},
|
||||
{path: '/about', name: routeNames.about, component: () => import('@/pages/About.vue')},
|
||||
{path: '/about', name: routeNames.about, component: () => import('@/pages/About.vue'), meta: {public: true}},
|
||||
] as const;
|
||||
Reference in New Issue
Block a user