1
0
mirror of https://github.com/flarum/core.git synced 2025-07-26 11:10:41 +02:00

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', [ Route::get('posts', [
'as' => 'flarum.api.posts.index', 'as' => 'flarum.api.posts.index',
'uses' => action_handler('Flarum\Api\Actions\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') 'uses' => action_handler('Flarum\Api\Actions\Posts\Create')
]); ]);
// Show a single post // Show a single or multiple posts by ID
Route::get('posts/{id}', [ Route::get('posts/{id}', [
'as' => 'flarum.api.posts.show', 'as' => 'flarum.api.posts.show',
'uses' => action_handler('Flarum\Api\Actions\Posts\Show') 'uses' => action_handler('Flarum\Api\Actions\Posts\Show')