Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions app/Http/Controllers/API/HealthCheckController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

namespace App\Http\Controllers\API;

use App\Http\Controllers\Controller;

class HealthCheckController extends Controller
{
/**
* Handle the incoming request.
*/
public function __invoke()
{
return response()->json([
'message' => 'Speedtest Tracker is running!',
]);
}
}
3 changes: 3 additions & 0 deletions routes/api.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php

use App\Http\Controllers\API\HealthCheckController;
use App\Http\Controllers\API\Speedtest\GetLatestController;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
Expand All @@ -19,6 +20,8 @@
return $request->user();
});

Route::get('/healthcheck', HealthCheckController::class);

/**
* This route provides backwards compatibility from https://github.com/henrywhitaker3/Speedtest-Tracker
* for Homepage and Organizr dashboards which expects the returned
Expand Down