Skip to content

Commit 981b654

Browse files
authored
Fix return type
Will return JsonResponse as expected
1 parent f0f585b commit 981b654

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Http/Controller.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ public function html()
1818
*/
1919
public function json()
2020
{
21-
return response()->file(
22-
Storage::disk('local')->path('apidoc/collection.json')
21+
return response()->json(
22+
json_decode(Storage::disk('local')->get('apidoc/collection.json'))
2323
);
2424
}
2525
}

0 commit comments

Comments
 (0)