cryptgeon/backend/src/api.rs

13 lines
208 B
Rust
Raw Normal View History

use actix_web::web;
2022-03-01 00:53:47 +01:00
use crate::note;
use crate::status;
2022-03-01 00:53:47 +01:00
pub fn init(cfg: &mut web::ServiceConfig) {
cfg.service(
web::scope("/api")
.service(note::init())
.service(status::init()),
);
2022-03-01 00:53:47 +01:00
}