Skip to content

Commit

Permalink
fix: healthchecker prefix fixed (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-affinidi authored Sep 17, 2024
1 parent 167734d commit f3a2c28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion affinidi-messaging-mediator/src/handlers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub mod message_outbound;
pub mod websocket;
pub mod well_known_did_fetch;

pub fn application_routes(api_prefix: String, shared_data: &SharedData) -> Router {
pub fn application_routes(api_prefix: &String, shared_data: &SharedData) -> Router {
let app = Router::new()
// Inbound message handling from ATM clients
.route("/inbound", post(message_inbound::message_inbound_handler))
Expand Down
4 changes: 2 additions & 2 deletions affinidi-messaging-mediator/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ pub async fn start() {
};

// build our application routes
let app: Router = application_routes(config.api_prefix, &shared_state);
let app: Router = application_routes(&config.api_prefix, &shared_state);

// Add middleware to all routes
let app = Router::new()
Expand All @@ -141,7 +141,7 @@ pub async fn start() {
.layer(RequestBodyLimitLayer::new(config.http_size_limit as usize))
// Add the healthcheck route after the tracing so we don't fill up logs with healthchecks
.route(
"/mediator/healthchecker",
format!("{}healthchecker", &config.api_prefix).as_str(),
get(health_checker_handler).with_state(shared_state),
);

Expand Down

0 comments on commit f3a2c28

Please sign in to comment.