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