feat(logging): add a logging middleware to log all api requests (#3437)

This commit is contained in:
Sampras Lopes
2024-01-25 12:56:20 +05:30
committed by GitHub
parent 47fbe486ce
commit c2946cfe05
12 changed files with 120 additions and 26 deletions

View File

@ -44,7 +44,13 @@ pub async fn create_payment_method_api(
&req,
json_payload.into_inner(),
|state, auth, req| async move {
cards::add_payment_method(state, req, &auth.merchant_account, &auth.key_store).await
Box::pin(cards::add_payment_method(
state,
req,
&auth.merchant_account,
&auth.key_store,
))
.await
},
&auth::ApiKeyAuth,
api_locking::LockAction::NotApplicable,