Skip to content

Commit

Permalink
cart verify route exclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan-g committed Sep 29, 2024
1 parent c45a2b8 commit 97dc06a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/payment/payment.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export class PaymentController {
};
try {
// create flask payment
const { data } = await axios.put(
const { data } = await axios.post(
'https://api.sayapp.company/api/v2/mycart/payment',
{
donation: Number(body.donation),
Expand Down
1 change: 1 addition & 0 deletions src/features/payment/payment.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export class PaymentModule implements NestModule {
consumer
.apply(PaymentMiddleware)
.exclude({ path: 'payment/verify', method: RequestMethod.GET })
.exclude({ path: 'payment/verify/cart', method: RequestMethod.GET })
.forRoutes(PaymentController);
}
}

0 comments on commit 97dc06a

Please sign in to comment.