Add unlike method

This commit is contained in:
2021-04-08 14:03:47 +02:00
parent 67682f71e5
commit bbb33e81db
2 changed files with 16 additions and 3 deletions

View File

@@ -76,4 +76,5 @@ Route.group(() => {
Route.group(() => {
Route.get('/:slug', 'PostsController.getLikes')
Route.post('/:slug/like', 'PostsController.like')
Route.post('/:slug/unlike', 'PostsController.unlike')
}).prefix('posts')