Chore(order): endpoints - Part 1:N (#7360)

This commit is contained in:
Carlos R. L. Rodrigues authored and GitHub committed 2024-05-19 14:51:08 -03:00
1 parent 0d0c0b4329
commit 48aa09be23
46 files changed
+1455 -153

No files matched your search

@@ -2,9 +2,15 @@ import {
ContainerRegistrationKeys,
remoteQueryObjectFromString,
} from "@medusajs/utils"
import { MedusaRequest, MedusaResponse } from "../../../types/routing"
import {
AuthenticatedMedusaRequest,
MedusaResponse,
} from "../../../types/routing"
export const GET = async (req: MedusaRequest, res: MedusaResponse) => {
export const GET = async (
req: AuthenticatedMedusaRequest,
res: MedusaResponse
) => {
const remoteQuery = req.scope.resolve(ContainerRegistrationKeys.REMOTE_QUERY)
const queryObject = remoteQueryObjectFromString({