Skip to content

Commit

Permalink
Fix return type
Browse files Browse the repository at this point in the history
Will return JsonResponse as expected
  • Loading branch information
HTMHell authored Mar 21, 2020
1 parent f0f585b commit 981b654
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Http/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ public function html()
*/
public function json()
{
return response()->file(
Storage::disk('local')->path('apidoc/collection.json')
return response()->json(
json_decode(Storage::disk('local')->get('apidoc/collection.json'))
);
}
}

0 comments on commit 981b654

Please sign in to comment.