Routing
Page and URL routing
Last updated
Page and URL routing
Last updated
The Mantis routing system is based on and its package it's also using code splitting for better performance.
Open src\routes\index.jsx
and you will find the below example code. In the below code, we have shown four different routes. <MainRoutes/>
is the main layout routing you see after login.
To add one more menu item in <MainRoutes />
, update the following file at the same location src\routes\MainRoutes.jsx
Any route added in <MainLayout>
will automatically go through <AuthGuard>
Further, the same menu needed to be added in respective JSON as well here: src/menu-items/index