47 lines
1.7 KiB
JavaScript
47 lines
1.7 KiB
JavaScript
import AppLayout from '@/layout/AppLayout.vue';
|
|
import { createRouter, createWebHistory } from 'vue-router';
|
|
|
|
const router = createRouter({
|
|
history: createWebHistory(),
|
|
routes: [
|
|
{
|
|
path: '/',
|
|
component: AppLayout,
|
|
meta: {
|
|
auth: true
|
|
},
|
|
children: [
|
|
{
|
|
path: '/',
|
|
name: 'dashboard',
|
|
component: () => import('@/views/Dashboard.vue')
|
|
},
|
|
{
|
|
path: '/ksdocuments',
|
|
children: [
|
|
{path: '', name: 'ks-document', component: () => import('@/views/pages/KsDocuments.vue')},
|
|
{path: 'new', name: 'ks-document-new', component: () => import('@/views/pages/KsNewDocumentForm.vue')},
|
|
//{path: ':id', name: 'ks-document-edit', component: () => import('@/views/pages/KsEditDocumentForm.vue')},
|
|
{path: '/ks_similarity_search', name: 'ks_similarity_search', component: () => import('@/views/pages/KsSimilaritySearch.vue')},
|
|
{path: '/ks_vector_data', name: 'ks_vector_data', component: () => import('@/views/pages/KsVectorData.vue')}
|
|
]
|
|
},
|
|
{
|
|
path: '/ks_git_repos',
|
|
children: [
|
|
{path: '', name: 'ks-git-repos', component: () => import('@/views/pages/KsGitRepos.vue')},
|
|
{path: 'new', name: 'ks-git-repo-new', component: () => import('@/views/pages/KsNewGitRepoForm.vue')},
|
|
{path: '/clone', name: 'ks-git-clone-repo', component: () => import('@/views/pages/KsGitCloneRepoForm.vue')},
|
|
]
|
|
},
|
|
]
|
|
},
|
|
{
|
|
path: '/auth/login',
|
|
name: 'login',
|
|
component: () => import('@/views/pages/auth/Login.vue')
|
|
},
|
|
]
|
|
});
|
|
|
|
export default router; |