Get only the number of inbox entries
This commit is contained in:
@ -158,6 +158,10 @@ async fn main() -> std::io::Result<()> {
|
||||
// Inbox controller
|
||||
.route("/api/inbox", web::post().to(inbox_controller::create))
|
||||
.route("/api/inbox", web::get().to(inbox_controller::get_list))
|
||||
.route(
|
||||
"/api/inbox/count",
|
||||
web::get().to(inbox_controller::count_entries),
|
||||
)
|
||||
.route(
|
||||
"/api/inbox/{inbox_id}",
|
||||
web::get().to(inbox_controller::get_single),
|
||||
|
Reference in New Issue
Block a user