mirror of
https://github.com/coaidev/coai.git
synced 2025-05-23 15:00:14 +09:00
22 lines
428 B
TypeScript
22 lines
428 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";
|
|
|
|
const router = createBrowserRouter([
|
|
{
|
|
id: 'home',
|
|
path: '/',
|
|
Component: Home,
|
|
ErrorBoundary: NotFound,
|
|
},
|
|
{
|
|
id: 'login',
|
|
path: '/login',
|
|
Component: Auth,
|
|
ErrorBoundary: NotFound,
|
|
},
|
|
]);
|
|
|
|
export default router;
|