diff --git a/docs/content/advanced/backend/endpoints/add-storefront.md b/docs/content/advanced/backend/endpoints/add-storefront.md index d4cca97b5c..50f4de19dc 100644 --- a/docs/content/advanced/backend/endpoints/add-storefront.md +++ b/docs/content/advanced/backend/endpoints/add-storefront.md @@ -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: