mirror of
https://github.com/coaidev/coai.git
synced 2025-06-02 11:50:23 +09:00
28 lines
561 B
TypeScript
28 lines
561 B
TypeScript
import { createBrowserRouter } from "react-router-dom";
|
|
import Home from "./routes/Home.tsx";
|
|
import NotFound from "./routes/NotFound.tsx";
|
|
import Auth from "./routes/Auth.tsx";
|
|
import Generation from "./routes/Generation.tsx";
|
|
|
|
const router = createBrowserRouter([
|
|
{
|
|
id: "home",
|
|
path: "/",
|
|
Component: Home,
|
|
ErrorBoundary: NotFound,
|
|
},
|
|
{
|
|
id: "login",
|
|
path: "/login",
|
|
Component: Auth,
|
|
ErrorBoundary: NotFound,
|
|
},
|
|
{
|
|
id: "generation",
|
|
path: "/generate",
|
|
Component: Generation,
|
|
},
|
|
]);
|
|
|
|
export default router;
|