add healthcheck endpoint and startup check

This commit is contained in:
2023-06-23 10:17:13 +02:00
parent e02224216a
commit e2711cc887
5 changed files with 39 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
use actix_web::web;
use crate::health;
use crate::note;
use crate::status;
@@ -7,6 +8,7 @@ pub fn init(cfg: &mut web::ServiceConfig) {
cfg.service(
web::scope("/api")
.service(note::init())
.service(status::init()),
.service(status::init())
.service(health::init()),
);
}