docs: fix imports across docs

This commit is contained in:
Shahed Nasser
2024-12-09 15:10:38 +02:00
parent 8dedb97e40
commit f4b45b8080
21 changed files with 61 additions and 61 deletions
@@ -53,8 +53,8 @@ To use this schema for validating the body parameters of requests to `/custom`,
For example, create the file `src/api/middlewares.ts` with the following content:
```ts title="src/api/middlewares.ts"
import { defineMiddlewares } from "@medusajs/medusa"
import {
defineMiddlewares,
validateAndTransformBody,
} from "@medusajs/framework/http"
import { PostStoreCustomSchema } from "./custom/validators"
@@ -183,9 +183,9 @@ Next, you'll use the schema to validate incoming requests' query parameters to t
Add the `validateAndTransformQuery` middleware to the API route in the file `src/api/middlewares.ts`:
```ts title="src/api/middlewares.ts"
import { defineMiddlewares } from "@medusajs/medusa"
import {
validateAndTransformQuery,
defineMiddlewares
} from "@medusajs/framework/http"
import { PostStoreCustomSchema } from "./custom/validators"