Skip to content

Commit

Permalink
Add api info page (#1635)
Browse files Browse the repository at this point in the history
Co-authored-by: Nabeel S <nabeelio@users.noreply.github.com>
arthurpar06 and nabeelio authored Oct 18, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 6434b94 commit 9d0b4a5
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Controllers/Api/StatusController.php
Original file line number Diff line number Diff line change
@@ -25,6 +25,7 @@ public function __construct(
public function status(): JsonResponse
{
return response()->json([
'name' => config('app.name'),
'version' => $this->versionSvc->getCurrentVersion(true),
'php' => PHP_VERSION,
]);
2 changes: 2 additions & 0 deletions app/Providers/RouteServiceProvider.php
Original file line number Diff line number Diff line change
@@ -543,6 +543,8 @@ private function mapApiRoutes()
'as' => 'api.',
], function () {
Route::group([], function () {
Route::get('/', 'StatusController@status');

Route::get('acars', 'AcarsController@live_flights');
Route::get('acars/geojson', 'AcarsController@pireps_geojson');

0 comments on commit 9d0b4a5

Please sign in to comment.