feat(router): adding generic tokenization endpoint (#7905)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Shivansh Mathur
2025-05-27 11:39:36 +05:30
committed by GitHub
parent c4a5e3ac16
commit 49a178ed20
60 changed files with 1450 additions and 38 deletions

View File

@ -158,7 +158,10 @@ pub fn mk_app(
.service(routes::PaymentMethodSession::server(state.clone()))
.service(routes::Refunds::server(state.clone()));
}
#[cfg(all(feature = "v2", feature = "oltp", feature = "tokenization_v2"))]
{
server_app = server_app.service(routes::Tokenization::server(state.clone()));
}
#[cfg(feature = "v1")]
{
server_app = server_app