update: app and main

This commit is contained in:
Tom Boullay
2026-04-28 13:32:54 +02:00
parent 291e747f7b
commit 632d4b5c95
2 changed files with 9 additions and 4 deletions
+8
View File
@@ -5,6 +5,7 @@ import {
createRouter,
} from "@tanstack/react-router";
import { HomePage } from "@/pages/HomePage";
import { EditorPage } from "@/pages/editor/EditorPage";
import {
DocsArchitectureRoute,
DocsFeaturesRoute,
@@ -23,6 +24,12 @@ const indexRoute = createRoute({
component: HomePage,
});
const editorRoute = createRoute({
getParentRoute: () => rootRoute,
path: "/editor",
component: EditorPage,
});
const docsRoute = createRoute({
getParentRoute: () => rootRoute,
path: "/docs",
@@ -55,6 +62,7 @@ const docsFeaturesRoute = createRoute({
const routeTree = rootRoute.addChildren([
indexRoute,
editorRoute,
docsRoute.addChildren([
docsIndexRoute,
docsArchitectureRoute,