diff --git a/src/Http/Controllers/ScriptController.php b/src/Http/Controllers/ScriptController.php index aced6ce9..9860f45e 100644 --- a/src/Http/Controllers/ScriptController.php +++ b/src/Http/Controllers/ScriptController.php @@ -9,9 +9,10 @@ class ScriptController { public function __invoke(Request $request) { - if (!isset(Ignition::scripts()[$request->script])) { + if (! isset(Ignition::scripts()[$request->script])) { abort(404, 'Script not found'); } + return response( file_get_contents( Ignition::scripts()[$request->script]