mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 12:06:56 +08:00
feat(logging): add a logging middleware to log all api requests (#3437)
This commit is contained in:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user