summaryrefslogtreecommitdiffstats
path: root/src/api/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/mod.rs')
-rw-r--r--src/api/mod.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/api/mod.rs b/src/api/mod.rs
index 98400c7..ea3ad41 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 {
@@ -36,7 +37,7 @@ pub(crate) fn router(state: AppState, auth_state: AuthState, debug_api: bool) ->
.route("/stream/{*key}", get(store::stream_store_entry))
.route("/peers", get(peers::list_peers))
.route("/peers/{peer}", delete(peers::delete_peer))
- .merge(crate::compaction::router::<AppState>());
+ .merge(crate::remake::router::<AppState>());
if debug_api {
warn!("Debug API enabled");