From 26cec36685747ca08302021195039c58d256ddac Mon Sep 17 00:00:00 2001 From: Abubeker Yasin Date: Thu, 4 Jun 2026 10:15:20 +0300 Subject: [PATCH] refactor: ( telebirr ) update the webhook to accept any request --- .../src/modules/payments/webhooks/webhooks.controller.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/edr-passenger-api/src/modules/payments/webhooks/webhooks.controller.ts b/apps/edr-passenger-api/src/modules/payments/webhooks/webhooks.controller.ts index 59e45722b..8fd6171ad 100644 --- a/apps/edr-passenger-api/src/modules/payments/webhooks/webhooks.controller.ts +++ b/apps/edr-passenger-api/src/modules/payments/webhooks/webhooks.controller.ts @@ -1,4 +1,4 @@ -import { Body, Controller, Headers, HttpCode, HttpStatus, Logger, Post } from '@nestjs/common'; +import {All, Body, Controller, Headers, HttpCode, HttpStatus, Logger, Post} from '@nestjs/common'; import { ApiOperation, ApiTags } from '@nestjs/swagger'; import { TelebirrWebhookPayload, @@ -31,7 +31,7 @@ export class WebhooksController { private readonly waafi: WaafiWebhookService, ) {} - @Post('telebirr') + @All('telebirr') @HttpCode(HttpStatus.OK) @ApiOperation({ summary: 'Telebirr payment notification callback (Ethiopia)',