Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

fix: move profile level connector list endpoint to separate scope (#5814)

Hrithikesh9dd1511b4d55
diff --git a/crates/router/src/routes/app.rs b/crates/router/src/routes/app.rs
index e2651e2929..5424bcb251 100644
--- a/crates/router/src/routes/app.rs
+++ b/crates/router/src/routes/app.rs
@@ -1272,10 +1272,6 @@ impl MerchantConnectorAccount {
.route(web::post().to(connector_create))
.route(web::get().to(payment_connector_list)),
)
- .service(
- web::resource("/{merchant_id}/profile/connectors")
- .route(web::get().to(payment_connector_list_profile)),
- )
.service(
web::resource("/{merchant_id}/connectors/{merchant_connector_id}")
.route(web::get().to(connector_retrieve))
@@ -1638,6 +1634,9 @@ impl BusinessProfileNew {
.service(
web::resource("").route(web::get().to(business_profiles_list_at_profile_level)),
)
+ .service(
+ web::resource("/connectors").route(web::get().to(payment_connector_list_profile)),
+ )
}
}