|
|
|
@ -10,7 +10,9 @@ export default async function genericProxyHandler(req, res) {
|
|
|
|
|
|
|
|
|
|
if (widget) {
|
|
|
|
|
const url = new URL(formatApiCall(widget.type, { endpoint, ...widget }));
|
|
|
|
|
const [status, contentType, data] = await httpProxy(url);
|
|
|
|
|
const [status, contentType, data] = await httpProxy(url, {
|
|
|
|
|
method: req.method,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
if (contentType) res.setHeader("Content-Type", contentType);
|
|
|
|
|
|
|
|
|
|