diff --git a/docs/content/development/endpoints/create.md b/docs/content/development/endpoints/create.md index b5ad0425e7..91ee74d13c 100644 --- a/docs/content/development/endpoints/create.md +++ b/docs/content/development/endpoints/create.md @@ -105,7 +105,7 @@ import { import { ConfigModule, } from "@medusajs/medusa/dist/types/global" -import * as cors from "cors" +import cors from "cors" ``` Next, in the exported function, retrieve the CORS configurations of your backend using the utility functions you imported: diff --git a/docs/content/development/endpoints/example-logged-in-user.md b/docs/content/development/endpoints/example-logged-in-user.md index 8e31b1e4f9..2313d52740 100644 --- a/docs/content/development/endpoints/example-logged-in-user.md +++ b/docs/content/development/endpoints/example-logged-in-user.md @@ -52,7 +52,7 @@ npm install cors Then, create the file `src/api/routes/create-product.ts` with the following content: ```ts title=src/api/routes/create-product.ts -import * as cors from "cors" +import cors from "cors" import { Router } from "express" import { registerLoggedInUser,