rustberg 0.0.4

A production-grade, cross-platform, single-binary Apache Iceberg REST Catalog
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pub mod server_config;
mod v1;

use axum::Router;

use crate::app::AppState;

// Re-export configuration types
pub use server_config::{
    AuthConfig, ConfigError, CorsConfig, JwtConfigSerde, KmsConfigFile, LoggingConfig,
    RateLimitConfigFile, RustbergConfig, ServerConfig, StorageConfig, TlsConfigFile,
};

pub fn create_routes(app_state: AppState) -> Router {
    let v1_routes = v1::create_routes(app_state.clone());

    Router::new().nest("/v1", v1_routes)
}