Integrated the footer routes into the App.jsx

This commit is contained in:
Mathias Wagner 2023-07-09 00:28:36 +02:00
parent 47340ff342
commit 190f2c8fcf
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -1,13 +1,14 @@
import {createBrowserRouter, RouterProvider} from "react-router-dom";
import Root from "@/common/layouts/Root";
import routes from "@/common/routes";
import footerRoutes from "@/common/routes/footer.jsx";
import NotFound from "@/pages/NotFound";
const router = createBrowserRouter([
{
path: "/",
element: <Root/>,
children: routes,
children: [...routes, ...footerRoutes],
errorElement: <NotFound />
}
]);