Skip to content

Commit db45ce2

Browse files
committed
Merge pull request #53 from jadjoubran/analysis-q1x5AX
Applied fixes from StyleCI
2 parents 212042c + 0b901c5 commit db45ce2

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

app/Http/routes.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,20 @@
1515

1616
Route::get('/unsupported-browser', 'AngularController@unsupported');
1717

18-
1918
$api = app('Dingo\Api\Routing\Router');
2019

21-
$api->version('v1', function($api){
20+
$api->version('v1', function ($api) {
2221
/*
2322
* used for Json Web Token Authentication - https://scotch.io/tutorials/token-based-authentication-for-angularjs-and-laravel-apps
2423
* Make sure to re-enable CSRF middleware if you're disabling JWT
2524
*/
2625
$api->controller('authenticate', 'App\Http\Controllers\AuthenticateController');
2726

28-
2927
$api->get('test', 'App\Http\Controllers\WelcomeController@getSample');
3028
});
3129

32-
3330
//protected with JWT
34-
$api->version('v1', ['middleware' => 'api.auth'], function($api){
31+
$api->version('v1', ['middleware' => 'api.auth'], function ($api) {
3532

3633
$api->post('test/sample', 'App\Http\Controllers\WelcomeController@sample');
3734

config/api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
*/
156156

157157
'auth' => [
158-
'jwt' => 'Dingo\Api\Auth\Provider\JWT'
158+
'jwt' => 'Dingo\Api\Auth\Provider\JWT',
159159
],
160160

161161
/*

0 commit comments

Comments
 (0)