docs: fix imports across docs
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user