Skip to content

Commit

Permalink
remove Closure route
Browse files Browse the repository at this point in the history
  • Loading branch information
cmzz committed Mar 8, 2021
1 parent 0c6c875 commit 8e41fb5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 5 additions & 0 deletions app/Http/Controllers/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,9 @@
class Controller extends BaseController
{
use AuthorizesRequests, DispatchesJobs, ValidatesRequests;

protected function check(): string
{
return 'ok';
}
}
4 changes: 1 addition & 3 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
|
*/

Route::any('/', function () {
return 'ok';
});
Route::any('/', 'Controller@Controller');

Auth::routes();

Expand Down

0 comments on commit 8e41fb5

Please sign in to comment.