From c1c086161e9bd611cf9579c43d4fa228f6d6a0d3 Mon Sep 17 00:00:00 2001 From: Nikhil Sinha <131262146+nikhilsinhaparseable@users.noreply.github.com> Date: Fri, 12 Apr 2024 08:40:43 +0530 Subject: [PATCH] fixed liveness and readiness api to use base path (#757) --- .../src/handlers/http/modal/ingest_server.rs | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/server/src/handlers/http/modal/ingest_server.rs b/server/src/handlers/http/modal/ingest_server.rs index 06188f5ff..0b565cee1 100644 --- a/server/src/handlers/http/modal/ingest_server.rs +++ b/server/src/handlers/http/modal/ingest_server.rs @@ -131,17 +131,16 @@ impl ParseableServer for IngestServer { impl IngestServer { // configure the api routes fn configure_routes(config: &mut web::ServiceConfig, _oidc_client: Option) { - config - .service( - // Base path "{url}/api/v1" - web::scope(&base_path()) - .service(Server::get_ingest_factory()) - .service(Self::logstream_api()) - .service(Server::get_about_factory()) - .service(Self::analytics_factory()), - ) - .service(Server::get_liveness_factory()) - .service(Server::get_readiness_factory()); + config.service( + // Base path "{url}/api/v1" + web::scope(&base_path()) + .service(Server::get_ingest_factory()) + .service(Self::logstream_api()) + .service(Server::get_about_factory()) + .service(Self::analytics_factory()) + .service(Server::get_liveness_factory()) + .service(Server::get_readiness_factory()), + ); } fn analytics_factory() -> Scope {