feat: add GET / route returning info response
All checks were successful
Deploy fil (kreuzberg) / deploy (push) Successful in 44s

Maps root path to the existing info_handler so the service
returns a 200 with version info instead of 404.
This commit is contained in:
Henrik Jess Nielsen
2026-06-02 00:26:15 +02:00
parent 5304f72106
commit 2620d6b50d

View File

@@ -167,6 +167,7 @@ pub(crate) fn create_router_with_limits_and_server_config(
}; };
let mut router = Router::new() let mut router = Router::new()
.route("/", get(info_handler))
.route("/extract", post(extract_handler)) .route("/extract", post(extract_handler))
.route("/extract-structured", post(extract_structured_handler)) .route("/extract-structured", post(extract_structured_handler))
.route("/extract-async", post(extract_async_handler)) .route("/extract-async", post(extract_async_handler))