cryptgeon/packages/backend/src/api.rs

13 lines
228 B
Rust
Raw Normal View History

use actix_web::web;
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()),
);
2022-02-28 23:53:47 +00:00
}