Routing

Overview

Velzon React has routing setup based on React-Router-Dom.

The router configuration for our template is located in the src/Routes folder. Specifically, the file src/Routes/allRoutes.js in Javascript version and the file src/Routes/allRoutes.ts in Typescript version encompasses all the routes within our template.

Additionally, we've implemented Authmiddleware in both javascript and typescript the src/Routes/allRoutes.js in JS or src/Routes/allRoutes.ts in TS and src/Routes/AuthProtected.js in JS orsrc/Routes/AuthProtected.ts in TS files. These files serve to manage redirections for users who aren't authenticated. You'll also find capabilities to handle role-based routing, customized redirections, and the ability to set the accessToken according to your specific requirements.

Note : All private & public routes are rendered in src/App.js and src/App.ts file.

How to add new route ?

You can easily add, change or remove any route by simply making changes described below:

© Velzon.
Design & Develop by Themesbrand
Warning :- We are deprecating the saga version by the end of December this year.