api ulangan
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user