cryptgeon/packages/backend/src/api.rs

15 lines
284 B
Rust
Raw Normal View History

use actix_web::web;
2022-02-28 23:53:47 +00:00
use crate::health;
2022-02-28 23:53:47 +00:00
use crate::note;
use crate::status;
2022-02-28 23:53:47 +00:00
pub fn init(cfg: &mut web::ServiceConfig) {
2022-03-12 13:07:33 +00:00
cfg.service(
web::scope("/api")
.service(note::init())
.service(status::init())
.service(health::init()),
2022-03-12 13:07:33 +00:00
);
2022-02-28 23:53:47 +00:00
}