Change WhatsApp route to POST.
Some checks failed
GBCI / build (push) Failing after 9m8s

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2025-09-27 09:32:34 -03:00
parent c9612fcf23
commit d7af2a38d2

View file

@ -472,7 +472,7 @@ export class GBMinService {
if (process.env.WHATSAPP_ENABLED) {
GBServer.globals.server
.all(`/${min.instance.botId}/whatsapp`, async (req, res) => {
.post(`/${min.instance.botId}/whatsapp`, async (req, res) => {
const challenge = (min.core['getParam'] as any)(min.instance, `Meta Challenge`, null, true);
const status = req.body?.entry?.[0]?.changes?.[0]?.value?.statuses?.[0];