mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2026-12-01 01:03:40 +08:00
Share workspace packages between Ray Admin and the interactive docs. BREAKING CHANGE: v6 is a new major line. v5 stays on legacy/v5.
26 lines
635 B
TypeScript
26 lines
635 B
TypeScript
import {
|
|
DEFAULT_HOME_PATH,
|
|
LAYOUT,
|
|
ROUTE_MANAGEMENT_PATH,
|
|
} from '@/router/constant'
|
|
import { createRouteContract } from '@ray-template/routing/contract'
|
|
import { findRouteView, findRouteViewId } from './views'
|
|
|
|
export const { parseRouteConfig, toRuntimeRoutes, exportRouteConfig } =
|
|
createRouteContract({
|
|
layout: LAYOUT,
|
|
homePath: DEFAULT_HOME_PATH,
|
|
findRouteView,
|
|
findRouteViewId,
|
|
managementPath: ROUTE_MANAGEMENT_PATH,
|
|
reservedNames: [
|
|
'RLogin',
|
|
'RLayout',
|
|
'RNotFound',
|
|
'RouteManagement',
|
|
'RouteManagementVisual',
|
|
'ErrorPage',
|
|
'RayTemplateDoc',
|
|
],
|
|
})
|