mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-14 12:14:33 +01:00
FIX ROUTES
This commit is contained in:
@@ -19,8 +19,9 @@ Route.group(() => {
|
||||
|
||||
Route.resource('/informations', 'InformationsController').only(['index', 'update'])
|
||||
|
||||
Route.resource('/posts', 'PostsController').only(['index', 'destroy'])
|
||||
Route.group(() => {
|
||||
Route.resource('/', 'PostsController').only(['index', 'show', 'destroy'])
|
||||
Route.get('/:slug', 'PostsController.show')
|
||||
Route.post('/:slug/like', 'PostsController.like')
|
||||
Route.post('/:slug/unlike', 'PostsController.unlike')
|
||||
}).prefix('/posts')
|
||||
|
||||
Reference in New Issue
Block a user