Skip to content

Commit f5a748f

Browse files
committed
Works in debug only.
1 parent 5d261cb commit f5a748f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Http/Controllers/ApiTesterController.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77

88
class ApiTesterController extends Controller
99
{
10+
public function __construct()
11+
{
12+
if (! config('app.debug')){
13+
abort(404);
14+
}
15+
}
16+
1017
public function index()
1118
{
1219
return view('api-tester::api-tester');

0 commit comments

Comments
 (0)