We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1dc8306 commit 938431dCopy full SHA for 938431d
blade/main.rs
@@ -243,6 +243,7 @@ cfg_if! {
243
.service(Files::new("/assets", assets.clone()))
244
// serve the favicon from /favicon.ico
245
.service(favicon)
246
+ .service(healthz)
247
.leptos_routes_with_context(
248
routes,
249
move|| provide_context(rt_state.clone()),
@@ -291,6 +292,11 @@ cfg_if! {
291
292
Ok(actix_files::NamedFile::open(r.rlocation("_main/blade/static/static/favicon.ico").unwrap())?)
293
}
294
295
+ #[get("/healthz")]
296
+ async fn healthz() -> HttpResponse {
297
+ HttpResponse::Ok().body("OK")
298
+ }
299
+
300
#[instrument]
301
async fn periodic_cleanup(global: Arc<state::Global>) {
302
let day = std::time::Duration::from_secs(60 * 60 * 24);
0 commit comments