Support for comments
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user