mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2025-09-06 01:10:40 +00:00
add healthcheck endpoint and startup check
This commit is contained in:
@@ -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()),
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user