Template
1
0

feat: add sample todo with valkyr/db

This commit is contained in:
2025-08-16 17:12:55 +02:00
parent 0b0ecbcb79
commit 81108e0a60
14 changed files with 611 additions and 137 deletions

View File

@@ -2,6 +2,7 @@ import { createRootRoute, createRoute, Outlet } from "@tanstack/react-router";
import { TanStackRouterDevtools } from "@tanstack/react-router-devtools";
import { CreateAccountView } from "./views/account/create.view.tsx";
import { TodosView } from "./views/todo/todos.view.tsx";
const rootRoute = createRootRoute({
component: () => (
@@ -26,4 +27,10 @@ const createAccountRoute = createRoute({
component: CreateAccountView,
});
export const routeTree = rootRoute.addChildren([homeRoute, createAccountRoute]);
const todosRoute = createRoute({
getParentRoute: () => rootRoute,
path: "/todos",
component: TodosView,
});
export const routeTree = rootRoute.addChildren([homeRoute, createAccountRoute, todosRoute]);