This commit is contained in:
Toby Zerner 2015-02-16 14:50:38 +10:30
parent 7ba59fc9a4
commit 9375e92c12

View File

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