Skip to content

Commit

Permalink
Add healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
BoilingSoup committed Oct 9, 2023
1 parent 4138a73 commit 762725d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
11 changes: 11 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
./src/node_modules
./src/public/hot
./src/public/storage
./src/storage/*.key
./src/vendor
./src/.env
./src/.phpunit.result.cache
./src/Homestead.json
./src/Homestead.yaml
./src/npm-debug.log
./src/yarn-error.log
12 changes: 1 addition & 11 deletions src/routes/web.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?php

use App\Helpers\RouteHelper;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
Expand All @@ -17,12 +15,4 @@

RouteHelper::includeRouteFiles(__DIR__.'/auth');

Route::get('/', function () {
$authStatus = Auth::check() ? 'Authenticated' : 'Unauthenticated';

if (config('app.env') === 'local') {
dump(Auth::user()?->getAttributes());
}

return "<h1>{$authStatus}</h1>";
});
Route::get('/healthcheck', fn () => response(status: 200));

0 comments on commit 762725d

Please sign in to comment.