api ulangan

This commit is contained in:
Samandar Turgunboyev
2025-12-22 19:03:57 +05:00
parent fd397b670b
commit 7f2fe3868b
121 changed files with 12636 additions and 5528 deletions

View File

@@ -1,3 +1,12 @@
import LoginLayout from "@/LoginLayout";
import Banners from "@/pages/Banners";
import Categories from "@/pages/Categories";
import Faq from "@/pages/Faq";
import HomePage from "@/pages/Home";
import Orders from "@/pages/Orders";
import Product from "@/pages/Product";
import Units from "@/pages/Units";
import Users from "@/pages/Users";
import routesConfig from "@/providers/routing/config";
import { Navigate, useRoutes } from "react-router-dom";
@@ -8,6 +17,42 @@ const AppRouter = () => {
path: "*",
element: <Navigate to="/" />,
},
{
path: "/dashboard",
element: (
<LoginLayout>
<HomePage />
</LoginLayout>
),
},
{
path: "/dashboard/products",
element: <Product />,
},
{
path: "/dashboard/categories",
element: <Categories />,
},
{
path: "/dashboard/units",
element: <Units />,
},
{
path: "/dashboard/banners",
element: <Banners />,
},
{
path: "/dashboard/orders",
element: <Orders />,
},
{
path: "/dashboard/users",
element: <Users />,
},
{
path: "/dashboard/faq",
element: <Faq />,
},
]);
return routes;