@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | use Illuminate\Http\Request; |
4 | 4 | use TQ\Shamir\Secret; |
5 | 5 | |
6 | -$app->get('/', function () use ($app) { |
|
6 | +$app->get('/', function() use ($app) { |
|
7 | 7 | return view( |
8 | 8 | 'index', |
9 | 9 | [ |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | ); |
14 | 14 | }); |
15 | 15 | |
16 | -$app->post('/', function (Request $request) use ($app) { |
|
16 | +$app->post('/', function(Request $request) use ($app) { |
|
17 | 17 | $response = 'An error ocurred'; |
18 | 18 | |
19 | 19 | // Set up post values |
@@ -29,7 +29,7 @@ |
||
29 | 29 | // should return either a User instance or null. You're free to obtain |
30 | 30 | // the User instance via an API token or any other method necessary. |
31 | 31 | |
32 | - $this->app['auth']->viaRequest('api', function ($request) { |
|
32 | + $this->app[ 'auth' ]->viaRequest('api', function($request) { |
|
33 | 33 | if ($request->input('api_token')) { |
34 | 34 | return User::where('api_token', $request->input('api_token'))->first(); |
35 | 35 | } |