The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.
TypeScript b2b-marketplacecomposable-commerceecommerceenterpriseheadless-commercemarketplacemedusamedusajsmulti-vendortypescript
refactor: update response structure in test route to include additional test field
Jakub Sieradzki2b165139cc28
diff --git a/packages/registry/r/block-1.json b/packages/registry/r/block-1.jsonindex 96331fabf..8cdd8f37c 100644--- a/packages/registry/r/block-1.json+++ b/packages/registry/r/block-1.json@@ -30,7 +30,7 @@},{"path": "block-1/api/hello/test/route.ts",- "content": "import type { MedusaRequest, MedusaResponse } from \"@medusajs/framework/http\";\n\nexport const POST = async (req: MedusaRequest, res: MedusaResponse) => {\n res.json({\n test: true\n })\n}",+ "content": "import type { MedusaRequest, MedusaResponse } from \"@medusajs/framework/http\";\n\nexport const POST = async (req: MedusaRequest, res: MedusaResponse) => {\n res.json({\n test: true,\n test2: false,\n })\n}","type": "registry:api"}]diff --git a/packages/registry/src/block-1/api/hello/test/route.ts b/packages/registry/src/block-1/api/hello/test/route.tsindex 919235034..bae609f28 100644--- a/packages/registry/src/block-1/api/hello/test/route.ts+++ b/packages/registry/src/block-1/api/hello/test/route.ts@@ -2,6 +2,7 @@ import type { MedusaRequest, MedusaResponse } from "@medusajs/framework/http";export const POST = async (req: MedusaRequest, res: MedusaResponse) => {res.json({- test: true+ test: true,+ test2: false,})}\ No newline at end of file