mirror of
https://github.com/flarum/framework.git
synced 2025-03-15 00:05:12 +08:00
More descriptive comments
This commit is contained in:
parent
6848081edb
commit
cfdf01ec70
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user