diff --git a/src/server/routes/webhookProxy.js b/src/server/routes/webhookProxy.js index 32a39c5..3254061 100644 --- a/src/server/routes/webhookProxy.js +++ b/src/server/routes/webhookProxy.js @@ -8,14 +8,17 @@ router.get("/:webhookId", async (req, res) => { const webhookUrl = `${process.env.DISCORD_WEBHOOK_URL}/${req.params.webhookId}/${process.env.DISCORD_WEBHOOK_TOKEN}` const webhookData = req.body try { - await axios.post(webhookUrl, webhookData) + await axios.post(webhookUrl, webhookData, { params: req.query }) res.status(200).send("Webhook sent successfully") + return } catch (error) { console.error(error) res.status(500).send("Internal server error") + return } } else { res.status(405).send("Method not allowed") + return } })