Skip to content

Commit

Permalink
Update SwaggerAssetController.php (#476)
Browse files Browse the repository at this point in the history
* Update SwaggerAssetController.php

* Update SwaggerController.php

* Update composer.json

* Update composer.json
  • Loading branch information
firdaushatta committed Jun 29, 2022
1 parent a91f536 commit 5a05d55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Http/Controllers/SwaggerAssetController.php
Expand Up @@ -10,10 +10,11 @@

class SwaggerAssetController extends BaseController
{
public function index(Request $request, $asset)
public function index(Request $request)
{
$fileSystem = new Filesystem();
$documentation = $request->offsetGet('documentation');
$asset = $request->offsetGet('asset');

try {
$path = swagger_ui_dist_path($documentation, $asset);
Expand Down

0 comments on commit 5a05d55

Please sign in to comment.