Add an endpoint to like posts

This commit is contained in:
Bat
2018-05-10 17:38:03 +01:00
parent ac7b4441e8
commit ee7dfee3ef
7 changed files with 79 additions and 4 deletions
+3 -1
View File
@@ -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())