feat(router): implement API endpoints for managing API keys (#511)

This commit is contained in:
Sanchith Hegde
2023-02-10 14:20:57 +05:30
committed by GitHub
parent 903b452146
commit 1bdc8955c2
35 changed files with 1759 additions and 99 deletions

View File

@ -49,6 +49,7 @@ pub mod headers {
pub const ACCEPT: &str = "Accept";
pub const X_API_VERSION: &str = "X-ApiVersion";
pub const DATE: &str = "Date";
pub const X_MERCHANT_ID: &str = "X-Merchant-Id";
}
pub mod pii {
@ -95,7 +96,9 @@ pub fn mk_app(
#[cfg(feature = "olap")]
{
server_app = server_app.service(routes::MerchantAccount::server(state.clone()));
server_app = server_app
.service(routes::MerchantAccount::server(state.clone()))
.service(routes::ApiKeys::server(state.clone()));
}
#[cfg(feature = "stripe")]