From 2620d6b50d655aadbfda098fd570a34c8d7c5c09 Mon Sep 17 00:00:00 2001 From: Henrik Jess Nielsen Date: Tue, 2 Jun 2026 00:26:15 +0200 Subject: [PATCH] feat: add GET / route returning info response Maps root path to the existing info_handler so the service returns a 200 with version info instead of 404. --- crates/kreuzberg/src/api/router.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/kreuzberg/src/api/router.rs b/crates/kreuzberg/src/api/router.rs index 351e277..9b265ea 100644 --- a/crates/kreuzberg/src/api/router.rs +++ b/crates/kreuzberg/src/api/router.rs @@ -167,6 +167,7 @@ pub(crate) fn create_router_with_limits_and_server_config( }; let mut router = Router::new() + .route("/", get(info_handler)) .route("/extract", post(extract_handler)) .route("/extract-structured", post(extract_structured_handler)) .route("/extract-async", post(extract_async_handler))