docs: fix import of cors (#4201)
* docs: fix import of cors * eslint fixes
This commit is contained in:
1 parent
6998666c6e
commit
06019f100a
2 files changed
+2
-2
No files matched your search
@@ -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:
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user