Support for comments
Some checks failed
Rust / Test (push) Failing after 4m13s
Rust / Rustfmt (push) Successful in 22s
Rust / Clippy (push) Failing after 31s
Rust / Code coverage (push) Successful in 6m21s

This commit is contained in:
Alphonse Paix
2025-10-02 00:26:18 +02:00
parent 2c7282475f
commit cb3f216591
14 changed files with 380 additions and 2751 deletions

View File

@@ -108,6 +108,10 @@ pub fn app(
.route("/posts", get(list_posts))
.route("/posts/load_more", get(load_more))
.route("/posts/{post_id}", get(see_post))
.route(
"/posts/{post_id}/comments",
post(post_comment).get(get_comments),
)
.route("/users/{username}", get(user_profile))
.route("/favicon.ico", get(favicon))
.nest("/admin", auth_routes)