mirror of
https://github.com/flarum/framework.git
synced 2024-11-23 07:01:03 +08:00
Cleanup
This commit is contained in:
parent
7ba59fc9a4
commit
9375e92c12
|
@ -1,7 +1,6 @@
|
|||
<?php
|
||||
|
||||
$action = function($class)
|
||||
{
|
||||
$action = function ($class) {
|
||||
return function () use ($class) {
|
||||
$action = App::make($class);
|
||||
$request = app('request');
|
||||
|
@ -76,7 +75,7 @@ Route::group(['prefix' => 'api', 'before' => 'attemptLogin'], function () use ($
|
|||
| Activity
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
||||
// List activity
|
||||
Route::get('activity', [
|
||||
'as' => 'flarum.api.activity.index',
|
||||
|
@ -197,5 +196,5 @@ Route::group(['prefix' => 'api', 'before' => 'attemptLogin'], function () use ($
|
|||
'as' => 'flarum.api.groups.delete',
|
||||
'uses' => $action('Flarum\Api\Actions\Groups\Delete')
|
||||
]);
|
||||
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user