From d206a6b4fe7e9e1b84dfe289fa4a4cc833dfba99 Mon Sep 17 00:00:00 2001 From: Andrey Yolkin Date: Thu, 17 Aug 2023 18:18:02 +0300 Subject: [PATCH] refactor(docs): keep only usefull information about `addRouteMiddleware` --- docs/3.api/4.advanced/2.kit.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/3.api/4.advanced/2.kit.md b/docs/3.api/4.advanced/2.kit.md index 540b237bc0..1def52d416 100644 --- a/docs/3.api/4.advanced/2.kit.md +++ b/docs/3.api/4.advanced/2.kit.md @@ -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).