Merge branch 'clean-resource-routes' of https://github.com/pedroborges/koel into pedroborges-clean-resource-routes

This commit is contained in:
An Phan 2015-12-14 22:14:25 +08:00
commit 0779ff6d2a

View file

@ -30,9 +30,9 @@ Route::group(['prefix' => 'api', 'middleware' => 'auth', 'namespace' => 'API'],
post('interaction/batch/like', 'InteractionController@batchLike');
post('interaction/batch/unlike', 'InteractionController@batchUnlike');
resource('playlist', 'PlaylistController');
resource('playlist', 'PlaylistController', ['only' => ['store', 'update', 'destroy']]);
put('playlist/{id}/sync', 'PlaylistController@sync')->where(['id' => '\d+']);
resource('user', 'UserController');
resource('user', 'UserController', ['only' => ['store', 'update', 'destroy']]);
put('me', 'UserController@updateProfile');
});