feat: initial commit

This commit is contained in:
Ibrahima G. Coulibaly
2024-06-19 19:10:14 +01:00
parent 2cb7ce23db
commit 3757717bcf
16 changed files with 959 additions and 268 deletions

View File

@@ -0,0 +1,24 @@
import {RouteObject} from "react-router-dom";
import {Navigate} from "react-router-dom";
import {ImagesConfig} from "../pages/images/ImagesConfig";
import {lazy} from "react";
const Home = lazy(() => import("../pages/home"));
const routes: RouteObject[] = [
{
path: "/",
element: <Home/>,
},
{
path: "images",
children: ImagesConfig
},
{
path: "*",
element: <Navigate to="404"/>,
},
];
export default routes;