mcaptcha/api/v1/notifications/
mod.rs1pub mod add;
7pub mod get;
8pub mod mark_read;
9
10pub mod routes {
11
12 pub struct Notifications {
13 pub add: &'static str,
14 pub mark_read: &'static str,
15 pub get: &'static str,
16 }
17
18 impl Notifications {
19 pub const fn new() -> Notifications {
20 Notifications {
21 add: "/api/v1/notifications/add",
22 mark_read: "/api/v1/notifications/read",
23 get: "/api/v1/notifications/get",
24 }
25 }
26 }
27}
28
29pub fn services(cfg: &mut actix_web::web::ServiceConfig) {
30 cfg.service(add::add_notification);
31 cfg.service(get::get_notification);
32 cfg.service(mark_read::mark_read);
33}