Skip to content

Commit

Permalink
middleware fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkaOnLine committed Feb 3, 2017
1 parent c24e517 commit a142462
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@
<log type="coverage-clover" target="./tests/storage/logs/test-reports/clover.xml"/>
<log type="junit" target="./tests/storage/logs/test-reports/junit.xml" logIncompleteSkipped="false"/>
</logging>
<php>
<env name="APP_KEY" value="AckfSECXIvnK5r28GVIWUAxmbBSjTsmF"/>
</php>
</phpunit>
4 changes: 2 additions & 2 deletions src/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

$router->any(config('l5-swagger.routes.docs').'/{jsonFile?}', [
'as' => 'l5-swagger.docs',
'middleware' => config('l5-swagger.middleware.docs', []),
'middleware' => config('l5-swagger.routes.middleware.docs', []),
'uses' => '\L5Swagger\Http\Controllers\SwaggerController@docs',
]);

$router->get(config('l5-swagger.routes.api'), [
'as' => 'l5-swagger.api',
'middleware' => config('l5-swagger.middleware.api', []),
'middleware' => config('l5-swagger.routes.middleware.api', []),
'uses' => '\L5Swagger\Http\Controllers\SwaggerController@api',
]);

0 comments on commit a142462

Please sign in to comment.