mirror of
https://github.com/tuono-labs/tuono
synced 2026-07-29 13:52:46 -07:00
31 lines
730 B
TypeScript
31 lines
730 B
TypeScript
|
|
// This file is auto-generated by Tuono
|
||
|
|
|
||
|
|
import { createRoute } from 'tuono'
|
||
|
|
|
||
|
|
import RootImport from './routes/__root'
|
||
|
|
|
||
|
|
import AboutImport from './routes/about'
|
||
|
|
import IndexImport from './routes/index'
|
||
|
|
|
||
|
|
const rootRoute = createRoute({ isRoot: true, component: RootImport })
|
||
|
|
|
||
|
|
const About = createRoute({ component: AboutImport })
|
||
|
|
const Index = createRoute({ component: IndexImport })
|
||
|
|
|
||
|
|
// Create/Update Routes
|
||
|
|
|
||
|
|
const AboutRoute = About.update({
|
||
|
|
path: '/about',
|
||
|
|
getParentRoute: () => rootRoute,
|
||
|
|
} as any)
|
||
|
|
|
||
|
|
const IndexRoute = Index.update({
|
||
|
|
path: '/',
|
||
|
|
getParentRoute: () => rootRoute,
|
||
|
|
hasHandler: true,
|
||
|
|
} as any)
|
||
|
|
|
||
|
|
// Create and export the route tree
|
||
|
|
|
||
|
|
export const routeTree = rootRoute.addChildren([IndexRoute, AboutRoute])
|