Add a route to get a single inbox entry

This commit is contained in:
2025-05-08 16:47:32 +02:00
parent df7f395e8b
commit b6af889dc5
6 changed files with 87 additions and 5 deletions

View File

@ -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/{inbox_id}",
web::get().to(inbox_controller::get_single),
)
// Statistics controller
.route("/api/stats/global", web::get().to(stats_controller::global))
.route(