Add an endpoint to like posts
This commit is contained in:
+3
-1
@@ -92,7 +92,9 @@ fn main() {
|
||||
routes::posts::create,
|
||||
|
||||
routes::comments::new,
|
||||
routes::comments::create
|
||||
routes::comments::create,
|
||||
|
||||
routes::likes::create
|
||||
])
|
||||
.manage(init_pool())
|
||||
.attach(Template::fairing())
|
||||
|
||||
Reference in New Issue
Block a user