docs: fixed middleware used in the Storefront endpoint documentation. (#2118)
This commit is contained in:
@@ -171,7 +171,7 @@ Protected routes are routes that should be accessible by logged-in customers onl
|
|||||||
To make a route protected, first, import the `authenticate` middleware:
|
To make a route protected, first, import the `authenticate` middleware:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
import authenticate from "@medusajs/medusa/dist/api/middlewares/authenticate"
|
import authenticate from "@medusajs/medusa/dist/api/middlewares/authenticate-customer"
|
||||||
```
|
```
|
||||||
|
|
||||||
Then, add the middleware to your route:
|
Then, add the middleware to your route:
|
||||||
|
|||||||
Reference in New Issue
Block a user