From 6dc65201f6df7e8d4774975fe91e43eca066db79 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Mon, 16 Jun 2025 13:04:59 +0300 Subject: [PATCH] docs: fix route matcher in brands guide (#12741) --- .../app/learn/customization/custom-features/api-route/page.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/apps/book/app/learn/customization/custom-features/api-route/page.mdx b/www/apps/book/app/learn/customization/custom-features/api-route/page.mdx index 0fb7c20a15..aa9b0ece96 100644 --- a/www/apps/book/app/learn/customization/custom-features/api-route/page.mdx +++ b/www/apps/book/app/learn/customization/custom-features/api-route/page.mdx @@ -157,7 +157,7 @@ You define the middlewares using the `defineMiddlewares` function and export its In the middleware object, you define three properties: -- `matcher`: a string or regular expression indicating the API route path to apply the middleware on. You pass the create brand's route `/admin/brand`. +- `matcher`: a string or regular expression indicating the API route path to apply the middleware on. You pass the create brand's route `/admin/brands`. - `method`: The HTTP method to restrict the middleware to, which is `POST`. - `middlewares`: An array of middlewares to apply on the route. You pass the `validateAndTransformBody` middleware, passing it the Zod schema you created earlier.