diff --git a/src/api/web.rs b/src/api/web.rs index 9980179f..9c960c27 100644 --- a/src/api/web.rs +++ b/src/api/web.rs @@ -64,8 +64,10 @@ fn attachments(uuid: SafeString, file_id: SafeString) -> Option { NamedFile::open(Path::new(&CONFIG.attachments_folder()).join(uuid).join(file_id)).ok() } +// We use DbConn here to let the alive healthcheck also verify the database connection. +use crate::db::DbConn; #[get("/alive")] -fn alive() -> Json { +fn alive(_conn: DbConn) -> Json { use crate::util::format_date; use chrono::Utc;