Move chunk search from DocumentsPage into a new Search bounded context (features/search/) with its own store, API layer, page and route. Clean search state out of the ingestion module. Closes #159
45 lines
972 B
TypeScript
45 lines
972 B
TypeScript
import { createRouter, createWebHistory } from 'vue-router'
|
|
import type { RouteRecordRaw } from 'vue-router'
|
|
|
|
const routes: RouteRecordRaw[] = [
|
|
{
|
|
path: '/',
|
|
name: 'home',
|
|
component: () => import('../../pages/HomePage.vue'),
|
|
},
|
|
{
|
|
path: '/studio',
|
|
name: 'studio',
|
|
component: () => import('../../pages/StudioPage.vue'),
|
|
},
|
|
{
|
|
path: '/history',
|
|
name: 'history',
|
|
component: () => import('../../pages/HistoryPage.vue'),
|
|
},
|
|
{
|
|
path: '/documents',
|
|
name: 'documents',
|
|
component: () => import('../../pages/DocumentsPage.vue'),
|
|
},
|
|
{
|
|
path: '/search',
|
|
name: 'search',
|
|
component: () => import('../../pages/SearchPage.vue'),
|
|
},
|
|
{
|
|
path: '/settings',
|
|
name: 'settings',
|
|
component: () => import('../../pages/SettingsPage.vue'),
|
|
},
|
|
{
|
|
path: '/:pathMatch(.*)*',
|
|
name: 'not-found',
|
|
redirect: '/',
|
|
},
|
|
]
|
|
|
|
export const router = createRouter({
|
|
history: createWebHistory(),
|
|
routes,
|
|
})
|