refactor(docs): keep only usefull information about addRouteMiddleware

This commit is contained in:
Andrey Yolkin 2023-08-17 18:18:02 +03:00
parent 99db514aa1
commit d206a6b4fe

View File

@ -1399,7 +1399,9 @@ export default defineNuxtModule({
### `addRouteMiddleware`
Route middleware functions within the Vue section of your Nuxt application. Distinct from server middleware, these middlewares are specifically for the Vue side. They enable you to incorporate specific logic to your routes, such as authentication and authorization. You can define these middlewares within a Nuxt module via this utility.
Registers route middlewares to be available for all routes or for specific routes.
Route middlewares can be also defined in plugins via [`addRouteMiddleware`](/docs/api/utils/add-route-middleware) composable.
::alert{type=info icon=👉}
Read more about route middlewares in the [Route middleware documentation](/docs/getting-started/routing#route-middleware).