diff options
| author | tv <tv@krebsco.de> | 2026-10-21 03:22:55 +0200 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-21 03:22:55 +0200 |
| commit | 215735c94b57fc190ec2adc77f9af500c00f0d41 (patch) | |
| tree | 3f3313c2ba03eab41b9bc25af148e812b2c58637 /src/api/mod.rs | |
| parent | 13d3fa4ca2d50b61cab8a9410d097f93797defce (diff) | |
reorganize all the modules
Diffstat (limited to 'src/api/mod.rs')
| -rw-r--r-- | src/api/mod.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/api/mod.rs b/src/api/mod.rs index 98400c7..ac6f2d0 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -1,5 +1,6 @@ //! HTTP API: router, OpenAPI document and shared response helpers. +pub(crate) mod auth; mod debug; mod peers; mod store; @@ -19,9 +20,9 @@ use tracing::{error, warn}; use utoipa::OpenApi; use utoipa_swagger_ui::SwaggerUi; -use crate::auth::{basic_auth, AuthState}; +use crate::api::auth::{basic_auth, AuthState}; +use crate::document::store::StoreError; use crate::state::AppState; -use crate::store::StoreError; /// Builds the complete HTTP router. Everything except Swagger is authenticated. pub(crate) fn router(state: AppState, auth_state: AuthState, debug_api: bool) -> Router { |
