Skip to content

Commit

Permalink
fixed the health endpoint being lower ranked than the other endpoints…
Browse files Browse the repository at this point in the history
… causing a name conflict
  • Loading branch information
CommanderStorm committed Jan 27, 2023
1 parent 383b740 commit 4655a3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions calendar/src/main.rs
Expand Up @@ -50,13 +50,13 @@ async fn main() -> std::io::Result<()> {
.wrap(middleware::Logger::default().exclude("/api/calendar/health"))
.wrap(middleware::Compress::default())
.app_data(web::JsonConfig::default().limit(MAX_JSON_PAYLOAD))
.service(source_code_handler)
.service(health_handler)
.service(
web::scope("/api/calendar")
.configure(calendar::configure)
.app_data(last_sync.clone()),
)
.service(source_code_handler)
.service(health_handler)
})
.bind(std::env::var("BIND_ADDRESS").unwrap_or_else(|_| "0.0.0.0:8060".to_string()))?
.run()
Expand Down

0 comments on commit 4655a3d

Please sign in to comment.