feat: authorize routes added
This commit is contained in:
@@ -22,6 +22,7 @@ import { Navigate } from 'react-router-dom';
|
||||
export interface RouteConfig {
|
||||
path: string;
|
||||
element?: ReactNode;
|
||||
authorize?: boolean;
|
||||
navConfig?: {
|
||||
title: string; // Translation key
|
||||
icon?: Icon;
|
||||
@@ -38,10 +39,12 @@ export const appRoutes: RouteConfig[] = [
|
||||
{
|
||||
path: '/login',
|
||||
element: <AuthenticationPage />,
|
||||
authorize: l,
|
||||
},
|
||||
{
|
||||
path: '/forget-password',
|
||||
element: <ForgetPasswordPage />,
|
||||
authorize: false,
|
||||
},
|
||||
{
|
||||
path: '/',
|
||||
|
||||
Reference in New Issue
Block a user