diff --git a/apps/api/v2/src/app.module.ts b/apps/api/v2/src/app.module.ts index b9bd76cfd7..6ec489bcba 100644 --- a/apps/api/v2/src/app.module.ts +++ b/apps/api/v2/src/app.module.ts @@ -86,10 +86,16 @@ export class AppModule implements NestModule { configure(consumer: MiddlewareConsumer): void { consumer .apply(RawBodyMiddleware) - .forRoutes({ - path: "/api/v2/billing/webhook", - method: RequestMethod.POST, - }) + .forRoutes( + { + path: "/api/v2/billing/webhook", + method: RequestMethod.POST, + }, + { + path: "/v2/billing/webhook", + method: RequestMethod.POST, + } + ) .apply(JsonBodyMiddleware) .forRoutes("*") .apply(RequestIdMiddleware)