Skip to content

Commit 6dc6520

Browse files
authored
docs: fix route matcher in brands guide (medusajs#12741)
1 parent e1dcb12 commit 6dc6520

File tree

1 file changed

+1
-1
lines changed
  • www/apps/book/app/learn/customization/custom-features/api-route

1 file changed

+1
-1
lines changed

www/apps/book/app/learn/customization/custom-features/api-route/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ You define the middlewares using the `defineMiddlewares` function and export its
157157

158158
In the middleware object, you define three properties:
159159

160-
- `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`.
160+
- `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`.
161161
- `method`: The HTTP method to restrict the middleware to, which is `POST`.
162162
- `middlewares`: An array of middlewares to apply on the route. You pass the `validateAndTransformBody` middleware, passing it the Zod schema you created earlier.
163163

0 commit comments

Comments
 (0)