From c04cbbaa1b25b6f0243d2536e0e10da2ff23cd53 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Tue, 2 May 2023 19:57:42 +0300 Subject: [PATCH] docs: fixed cors import in endpoints documentation (#3987) Fixed import of the `cors` package to the following: ```ts import * as cors from "cors" ``` --- docs/content/development/endpoints/create.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/development/endpoints/create.md b/docs/content/development/endpoints/create.md index 91ee74d13c..b5ad0425e7 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 cors from "cors" +import * as cors from "cors" ``` Next, in the exported function, retrieve the CORS configurations of your backend using the utility functions you imported: