feat: add GET / route returning info response
All checks were successful
Deploy fil (kreuzberg) / deploy (push) Successful in 44s
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:
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user