File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace App \Http \Controllers \API ;
4+
5+ use App \Http \Controllers \Controller ;
6+
7+ class HealthCheckController extends Controller
8+ {
9+ /**
10+ * Handle the incoming request.
11+ */
12+ public function __invoke ()
13+ {
14+ return response ()->json ([
15+ 'message ' => 'Speedtest Tracker is running! ' ,
16+ ]);
17+ }
18+ }
Original file line number Diff line number Diff line change 11<?php
22
3+ use App \Http \Controllers \API \HealthCheckController ;
34use App \Http \Controllers \API \Speedtest \GetLatestController ;
45use Illuminate \Http \Request ;
56use Illuminate \Support \Facades \Route ;
1920 return $ request ->user ();
2021});
2122
23+ Route::get ('/healthcheck ' , HealthCheckController::class);
24+
2225/**
2326 * This route provides backwards compatibility from https://github.com/henrywhitaker3/Speedtest-Tracker
2427 * for Homepage and Organizr dashboards which expects the returned
You can’t perform that action at this time.
0 commit comments