docs: fix imports across docs

This commit is contained in:
Shahed Nasser committed 2024-12-09 15:10:38 +02:00
1 parent 8dedb97e40
commit f4b45b8080
21 files changed
+61 -61

No files matched your search

@@ -134,7 +134,7 @@ To pass the `custom_name` in the `additional_data` parameter, you must add a val
Create the file `src/api/middlewares.ts` with the following content:
```ts title="src/api/middlewares.ts"
import { defineMiddlewares } from "@medusajs/medusa"
import { defineMiddlewares } from "@medusajs/framework/http"
import { z } from "zod"
export default defineMiddlewares({
@@ -402,7 +402,7 @@ The `updateProductsWorkflow` is executed by the [Update Product API route](!api!
To allow passing `custom_name` in the `additional_data` parameter of the update product route, add in `src/api/middlewares.ts` a new route middleware configuration object:
```ts title="src/api/middlewares.ts"
import { defineMiddlewares } from "@medusajs/medusa"
import { defineMiddlewares } from "@medusajs/framework/http"
import { z } from "zod"
export default defineMiddlewares({