mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 01:17:16 +00:00
refactor(docs): keep only usefull information about addRouteMiddleware
This commit is contained in:
parent
99db514aa1
commit
d206a6b4fe
@ -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).
|
||||
|
Loading…
Reference in New Issue
Block a user