Skip to content

Commit

Permalink
Merge pull request #258 from arkedge/add-healthcheck
Browse files Browse the repository at this point in the history
      Add healthcheck endpoint
  • Loading branch information
sksat authored Oct 30, 2024
2 parents b6efd94 + 4f3e5bc commit e5075aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ async fn main() -> std::io::Result<()> {
.app_data(web::Data::new(Arc::new(cfg.clone()))) // memo: https://github.com/actix/actix-web/issues/1454#issuecomment-867897725
.app_data(web::Data::new(Arc::new(opt.clone())))
.service(web::resource("/webhook").route(web::post().to(webhook)))
.service(web::resource("/healthcheck").route(web::get().to(|| HttpResponse::Ok())))

Check warning on line 202 in src/main.rs

View workflow job for this annotation

GitHub Actions / rust

[clippy] reported by reviewdog 🐶 redundant closure Raw Output: src/main.rs:202:72: warning: redundant closure (clippy::redundant_closure)
})
.bind(format!("0.0.0.0:{}", port))?
.run()
Expand Down

0 comments on commit e5075aa

Please sign in to comment.