mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-05 17:58:55 +00:00
fix list comment route
This commit is contained in:
1 parent
0280e6b706
commit
efbb0000f3
1 file changed
+1
-1
@@ -144,7 +144,7 @@ pub fn add_routes<T, B> (app: App<T, B>) -> App<T, B>
|
||||
// ==================== Comments ====================
|
||||
|
||||
let mut app = RouteBuilder::from_app(app)
|
||||
.add_get("/v1/comments/{entity_type}/entity_token", list_comments_handler)
|
||||
.add_get("/v1/comments/{entity_type}/{entity_token}", list_comments_handler)
|
||||
.add_post("/v1/comments/new", create_comment_handler)
|
||||
.add_post("/v1/comments/{comment_token}/delete", delete_comment_handler)
|
||||
.into_app();
|
||||
|
||||
Reference in new issue
Block a user