Configuration Files
routes.config.ts
This file is used to configure the routes of the app. It’s divided into 3 main sections:
PUBLIC: These are the routes that are ALWAYS accessible - even when authenticated.
AUTH: These are the routes that are used for authentication flows such as login, signup, forgot password, etc. These can’t be accessed when authenticated.
PROTECTED: These are the routes that are protected and require the user to be authenticated.
Feel free to just add or remove routes from the appropiate section as the middleware.ts will handle the rest.
To-Do’s:
- Feel free to add or remove routes. These are all optional. However, if a route is removed, make sure to also remove it throughout the codebase where it’s being used.
TL;DR: no action required. You can just leave the default settings.