docs: update imports of middlewares and http types (#9440)

This commit is contained in:
Shahed Nasser
2024-10-03 15:56:58 +00:00
committed by GitHub
parent a461e21ae7
commit 00a51b59b1
71 changed files with 213 additions and 213 deletions
@@ -27,7 +27,7 @@ Create the file `src/api/admin/brands/route.ts` with the following content:
import {
MedusaRequest,
MedusaResponse,
} from "@medusajs/medusa"
} from "@medusajs/framework/http"
import {
CreateBrandInput,
createBrandWorkflow,
@@ -39,7 +39,7 @@ Create the file `src/api/admin/brands/route.ts` with the following content:
import {
MedusaRequest,
MedusaResponse,
} from "@medusajs/medusa"
} from "@medusajs/framework/http"
import { BRAND_MODULE } from "../../../modules/brand"
import BrandModuleService from "../../../modules/brand/service"
@@ -49,7 +49,7 @@ export const highlights = [
import {
MedusaRequest,
MedusaResponse,
} from "@medusajs/medusa"
} from "@medusajs/framework/http"
import {
ContainerRegistrationKeys,
} from "@medusajs/framework/utils"
@@ -170,7 +170,7 @@ To handle the `brand.created` event, create a subscriber at `src/subscribers/bra
import type {
SubscriberConfig,
SubscriberArgs,
} from "@medusajs/medusa"
} from "@medusajs/framework"
import { syncBrandToSystemWorkflow } from "../workflows/sync-brand-to-system"
export default async function brandCreatedHandler({