Initial open-source release
This commit is contained in:
13
src/routes/chat.tsx
Normal file
13
src/routes/chat.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import { createRoute } from "@tanstack/react-router";
|
||||
import { rootRoute } from "./root";
|
||||
import ChatPage from "../pages/chat";
|
||||
import { z } from "zod";
|
||||
|
||||
export const chatRoute = createRoute({
|
||||
getParentRoute: () => rootRoute,
|
||||
path: "/chat",
|
||||
component: ChatPage,
|
||||
validateSearch: z.object({
|
||||
id: z.number().optional(),
|
||||
}),
|
||||
});
|
||||
Reference in New Issue
Block a user