More descriptive comments

This commit is contained in:
Toby Zerner 2015-01-16 17:02:06 +10:30
parent 6848081edb
commit cfdf01ec70

View File

@ -108,7 +108,7 @@ Route::group(['prefix' => 'api'], function () {
|--------------------------------------------------------------------------
*/
// List posts
// List posts, usually for a discussion
Route::get('posts', [
'as' => 'flarum.api.posts.index',
'uses' => action_handler('Flarum\Api\Actions\Posts\Index')
@ -121,7 +121,7 @@ Route::group(['prefix' => 'api'], function () {
'uses' => action_handler('Flarum\Api\Actions\Posts\Create')
]);
// Show a single post
// Show a single or multiple posts by ID
Route::get('posts/{id}', [
'as' => 'flarum.api.posts.show',
'uses' => action_handler('Flarum\Api\Actions\Posts\Show')