feat(frontend): marketplace route
This commit is contained in:
@@ -44,6 +44,7 @@ const StatsCard = lazyPage(() => import('./pages/StatsCard.js'), 'StatsCardPage'
|
|||||||
const Settings = lazyPage(() => import('./pages/Settings.js'), 'SettingsPage');
|
const Settings = lazyPage(() => import('./pages/Settings.js'), 'SettingsPage');
|
||||||
const Profile = lazyPage(() => import('./pages/Profile.js'), 'ProfilePage');
|
const Profile = lazyPage(() => import('./pages/Profile.js'), 'ProfilePage');
|
||||||
const AdminUsers = lazyPage(() => import('./pages/AdminUsers.js'), 'AdminUsersPage');
|
const AdminUsers = lazyPage(() => import('./pages/AdminUsers.js'), 'AdminUsersPage');
|
||||||
|
const Marketplace = lazyPage(() => import('./pages/Marketplace.js'), 'MarketplacePage');
|
||||||
|
|
||||||
const Login = lazyPage(() => import('./pages/auth/Login.js'), 'LoginPage');
|
const Login = lazyPage(() => import('./pages/auth/Login.js'), 'LoginPage');
|
||||||
const Register = lazyPage(() => import('./pages/auth/Register.js'), 'RegisterPage');
|
const Register = lazyPage(() => import('./pages/auth/Register.js'), 'RegisterPage');
|
||||||
@@ -80,6 +81,7 @@ export const router = createBrowserRouter([
|
|||||||
{ path: 'stats/cards/:id', element: <StatsCard /> },
|
{ path: 'stats/cards/:id', element: <StatsCard /> },
|
||||||
{ path: 'settings', element: <Settings /> },
|
{ path: 'settings', element: <Settings /> },
|
||||||
{ path: 'profile', element: <Profile /> },
|
{ path: 'profile', element: <Profile /> },
|
||||||
|
{ path: 'marketplace', element: <Marketplace /> },
|
||||||
{
|
{
|
||||||
element: <RoleGuard role="sysadmin" />,
|
element: <RoleGuard role="sysadmin" />,
|
||||||
children: [
|
children: [
|
||||||
|
|||||||
Reference in New Issue
Block a user