mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 10:05:41 +00:00
get notifications
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
*/
|
||||
|
||||
mod add;
|
||||
mod get;
|
||||
|
||||
pub mod routes {
|
||||
|
||||
@@ -30,7 +31,7 @@ pub mod routes {
|
||||
Notifications {
|
||||
add: "/api/v1/notifications/add",
|
||||
mark_read: "/api/v1/notifications/read/",
|
||||
get: "/api/v1/notifications/get/",
|
||||
get: "/api/v1/notifications/get",
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -46,4 +47,11 @@ pub fn services(cfg: &mut actix_web::web::ServiceConfig) {
|
||||
Methods::ProtectPost,
|
||||
add::add_notification
|
||||
);
|
||||
|
||||
define_resource!(
|
||||
cfg,
|
||||
V1_API_ROUTES.notifications.get,
|
||||
Methods::ProtectGet,
|
||||
get::get_notification
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user