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