This commit is contained in:
Toby Zerner 2015-02-16 14:50:38 +10:30
parent 9bb7001645
commit b6ef1f296e

View File

@ -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')
]); ]);
}); });