Skip to content

Commit

Permalink
Fix double json encode
Browse files Browse the repository at this point in the history
  • Loading branch information
HTMHell committed Mar 19, 2020
1 parent 3366c43 commit f0f585b
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()->json(
Storage::disk('local')->get('apidoc/collection.json')
return response()->file(
Storage::disk('local')->path('apidoc/collection.json')
);
}
}

0 comments on commit f0f585b

Please sign in to comment.