mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 09:07:09 +08:00
bugfix(router): api keys path params (#609)
This commit is contained in:
@ -65,7 +65,7 @@ pub async fn api_key_retrieve(
|
|||||||
req: HttpRequest,
|
req: HttpRequest,
|
||||||
path: web::Path<(String, String)>,
|
path: web::Path<(String, String)>,
|
||||||
) -> impl Responder {
|
) -> impl Responder {
|
||||||
let (key_id, _merchant_id) = path.into_inner();
|
let (_merchant_id, key_id) = path.into_inner();
|
||||||
|
|
||||||
api::server_wrap(
|
api::server_wrap(
|
||||||
state.get_ref(),
|
state.get_ref(),
|
||||||
@ -99,7 +99,7 @@ pub async fn api_key_update(
|
|||||||
path: web::Path<(String, String)>,
|
path: web::Path<(String, String)>,
|
||||||
json_payload: web::Json<api_types::UpdateApiKeyRequest>,
|
json_payload: web::Json<api_types::UpdateApiKeyRequest>,
|
||||||
) -> impl Responder {
|
) -> impl Responder {
|
||||||
let (key_id, _merchant_id) = path.into_inner();
|
let (_merchant_id, key_id) = path.into_inner();
|
||||||
let payload = json_payload.into_inner();
|
let payload = json_payload.into_inner();
|
||||||
|
|
||||||
api::server_wrap(
|
api::server_wrap(
|
||||||
@ -133,7 +133,7 @@ pub async fn api_key_revoke(
|
|||||||
req: HttpRequest,
|
req: HttpRequest,
|
||||||
path: web::Path<(String, String)>,
|
path: web::Path<(String, String)>,
|
||||||
) -> impl Responder {
|
) -> impl Responder {
|
||||||
let (key_id, _merchant_id) = path.into_inner();
|
let (_merchant_id, key_id) = path.into_inner();
|
||||||
|
|
||||||
api::server_wrap(
|
api::server_wrap(
|
||||||
state.get_ref(),
|
state.get_ref(),
|
||||||
|
|||||||
Reference in New Issue
Block a user