feat: scaffold frontend app structure
This commit is contained in:
15
frontend/src/app/router.tsx
Normal file
15
frontend/src/app/router.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import { createBrowserRouter } from "react-router-dom";
|
||||
import { AppLayout } from "./layouts/AppLayout";
|
||||
import { DashboardPage } from "../pages/DashboardPage";
|
||||
import { RacesPage } from "../pages/RacesPage";
|
||||
|
||||
export const appRouter = createBrowserRouter([
|
||||
{
|
||||
path: "/",
|
||||
element: <AppLayout />,
|
||||
children: [
|
||||
{ index: true, element: <DashboardPage /> },
|
||||
{ path: "races", element: <RacesPage /> }
|
||||
]
|
||||
}
|
||||
]);
|
||||
Reference in New Issue
Block a user