TASK22211: normalize case creation and media endpoint contracts

This commit is contained in:
2026-03-23 11:55:23 +00:00
parent e0e91c843b
commit 98e159d523
4 changed files with 257 additions and 88 deletions
+2 -11
View File
@@ -1,13 +1,4 @@
import axios from "axios";
import CryptoJS from "crypto-js";
import { azureHeaders } from "../../../actions/core/headers";
import { consoleLogger } from "../../../actions/core/logger";
import { getToken } from "../../../actions/core/token";
import { hashAPIPath } from "../../../actions/core/hash";
const WEBAPI_URL =
process.env.RELAY_ROOT ||
"https://dev-pedw-ns.servicebus.windows.net/dev-pedw-hc/";
import { respondSuccess } from "../middleware/apiResponse";
// export default async function ApiProxy(req, res) {
// var caseid = req.query.caseid;
@@ -134,5 +125,5 @@ export default function ApiProx(req, res) {
}
]
};
return res.status(200).json(data);
return respondSuccess(res, data);
}