> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# Route Authorization

UltraModern.js uses convention-based routing backed by TanStack Router. For more details, please refer to [Routing](/guides/basic-features/routes/routes.md#routing).

In a web application, if there are multiple routes, we may need to authorize access to some of them before accessing them. For example, in the following scenario:

- Access to the `/` route does not require authorization and can be accessed directly.
- Access to the `/protected` route requires authorization. If there is no authorization, it will automatically redirect to the `/login` route. After successful login, it returns to `/protected`.

