docs: fixed middleware used in the Storefront endpoint documentation. (#2118)

This commit is contained in:
Shahed Nasser
2022-08-29 13:45:55 +03:00
committed by GitHub
parent 7fd65b1a41
commit 890732d238

View File

@@ -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:
```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: