Skip to content

Commit

Permalink
fixed liveness and readiness api to use base path (#757)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilsinhaparseable authored Apr 12, 2024
1 parent 802f727 commit c1c0861
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions server/src/handlers/http/modal/ingest_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,17 +131,16 @@ impl ParseableServer for IngestServer {
impl IngestServer {
// configure the api routes
fn configure_routes(config: &mut web::ServiceConfig, _oidc_client: Option<OpenIdClient>) {
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 {
Expand Down

0 comments on commit c1c0861

Please sign in to comment.