Skip to content

Scheduling infrastructure for absolutely everyone.

feat: add /v2/billing/webhook route to RawBodyMiddleware configuration (#22032)

devin-ai-integration[bot]164c9e37d7f8
diff --git a/apps/api/v2/src/app.module.ts b/apps/api/v2/src/app.module.ts
index b9bd76cfd7a..6ec489bcba8 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)