Understanding Routes
Last updated
Last updated
While using Jumbo you can define all of your routes inside the src/app/routes/
folder. Here inside this folder, you will find the inde.js
file which includes following three arrays where you can define your routes in a structured way:
routesForPublic In this array you can define all of your routes which are for public use and that means both anonymous and authenticated users can access these routes.
routesForAuthenticatedOnly In this array you can define those routes which should only be accessible to the authenticated users.
routesForNotAuthenticatedOnly In this array you can define those routes which only be accessible if user is an anonymous user. Some examples of these type of routes are login, forgot password, reset password, signup pages routes. You will never want to show the login page to an authenticated user.