mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-09-24 16:39:31 +02:00
feat: initial commit
This commit is contained in:
24
src/config/routesConfig.tsx
Normal file
24
src/config/routesConfig.tsx
Normal 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;
|
||||
|
Reference in New Issue
Block a user