docs: fixed cors import in endpoints documentation (#3987)

Fixed import of the `cors` package to the following:

```ts
import * as cors from "cors"
```
This commit is contained in:
Shahed Nasser
2023-05-02 19:57:42 +03:00
committed by GitHub
parent d5d1c4c102
commit c04cbbaa1b

View File

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