Suppory body in widget endpoint mappings

This commit is contained in:
shamoon 2023-02-18 22:18:27 -08:00
parent 2367564041
commit e35a66d3f1
2 changed files with 8 additions and 2 deletions

View file

@ -32,6 +32,7 @@ export default async function handler(req, res) {
}
req.method = mapping?.method || "GET";
if (mapping?.body) req.body = mapping?.body;
req.query.endpoint = endpoint;
if (req.query.segments) {