]> Untitled Git - lemmy.git/blobdiff - src/api_routes.rs
Adding GetUnreadCount to the API. Fixes #1794 (#1842)
[lemmy.git] / src / api_routes.rs
index 1d76af002ae509c19c15d4ec7bf86e116412aa23..80d507ef83f4c772e80d460dbcdcab5802f5a3cd 100644 (file)
@@ -193,7 +193,8 @@ pub fn config(cfg: &mut web::ServiceConfig, rate_limit: &RateLimit) {
             "/change_password",
             web::put().to(route_post::<ChangePassword>),
           )
-          .route("/report_count", web::get().to(route_get::<GetReportCount>)),
+          .route("/report_count", web::get().to(route_get::<GetReportCount>))
+          .route("/unread_count", web::get().to(route_get::<GetUnreadCount>)),
       )
       // Admin Actions
       .service(