mirror of https://github.com/buster-so/buster.git
24 lines
531 B
Rust
24 lines
531 B
Rust
//! Middleware Library
|
|
//!
|
|
//! This library provides common middleware components for the Buster web server,
|
|
//! including authentication and CORS handling.
|
|
|
|
pub mod auth;
|
|
pub mod cors;
|
|
pub mod types;
|
|
pub mod error;
|
|
|
|
// Re-export commonly used types
|
|
pub use auth::auth;
|
|
pub use cors::cors;
|
|
pub use error::{
|
|
sentry_layer,
|
|
init_sentry,
|
|
is_sentry_enabled,
|
|
init_tracing_subscriber,
|
|
report_error,
|
|
report_warning,
|
|
capture_anyhow
|
|
};
|
|
pub use types::{AuthenticatedUser, OrganizationMembership, TeamMembership};
|