feat: authorize routes added

This commit is contained in:
2025-08-16 00:01:03 +03:30
parent e9b43b9e53
commit 2ad191064e
7 changed files with 41 additions and 7 deletions

View File

@@ -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: '/',