Browse Source
Merge branch 'BlackDex-alive-db-check' into main
pull/2044/head
Daniel García
3 years ago
No known key found for this signature in database
GPG Key ID: FC8A7D14C3CD543A
1 changed files with
3 additions and
1 deletions
-
src/api/web.rs
|
|
@ -64,8 +64,10 @@ fn attachments(uuid: SafeString, file_id: SafeString) -> Option<NamedFile> { |
|
|
|
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<String> { |
|
|
|
fn alive(_conn: DbConn) -> Json<String> { |
|
|
|
use crate::util::format_date; |
|
|
|
use chrono::Utc; |
|
|
|
|
|
|
|