Change WhatsApp route to POST.
This commit is contained in:
parent
3145ca8483
commit
ba600aae55
1 changed files with 1 additions and 1 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue