diff --git a/src/Exceptions/FileNotFoundException.php b/src/Exceptions/FileNotFoundException.php new file mode 100644 index 00000000..3cbc7c1e --- /dev/null +++ b/src/Exceptions/FileNotFoundException.php @@ -0,0 +1,13 @@ +has('apidoc/collection.json')) { + throw new FileNotFoundException(400, 'Please run php artisan apidoc:generate.'); + } + return response()->json( json_decode(Storage::disk(config('apidoc.storage'))->get('apidoc/collection.json')) );