Skip to content

Commit

Permalink
Refactor OpenHandlerController::handle() (#1120)
Browse files Browse the repository at this point in the history
  • Loading branch information
bu4ak authored May 13, 2021
1 parent 455e5f0 commit 49c1e07
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/Controllers/OpenHandlerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,7 @@ public function handle(Request $request)
$openHandler = new OpenHandler($this->debugbar);
$data = $openHandler->handle($request->input(), false, false);

return new Response(
$data,
200,
[
'Content-Type' => 'application/json'
]
);
return response()->json($data);
}

/**
Expand Down

0 comments on commit 49c1e07

Please sign in to comment.