mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-06 21:57:48 +01:00
Suppory body in widget endpoint mappings
This commit is contained in:
@@ -27,10 +27,15 @@ export default async function genericProxyHandler(req, res, map) {
|
||||
};
|
||||
}
|
||||
|
||||
const [status, contentType, data] = await httpProxy(url, {
|
||||
const params = {
|
||||
method: req.method,
|
||||
headers,
|
||||
});
|
||||
}
|
||||
if (req.body) {
|
||||
params.body = req.body;
|
||||
}
|
||||
|
||||
const [status, contentType, data] = await httpProxy(url, params);
|
||||
|
||||
let resultData = data;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user