diff --git a/routes/api.php b/routes/api.php index 37bc3baa8d..2429ffa853 100644 --- a/routes/api.php +++ b/routes/api.php @@ -1162,6 +1162,17 @@ Route::group(['prefix' => 'v1', 'middleware' => ['api', 'throttle:api']], functi )->name('api.activity.index'); }); // end reports api routes + /** + * Version API routes + */ + + Route::get('/version', function () { + return response()->json( + [ + 'version' => config('version.app_version'), + ], 200); + }); // end version api routes + Route::fallback(function () { return response()->json( @@ -1172,5 +1183,4 @@ Route::group(['prefix' => 'v1', 'middleware' => ['api', 'throttle:api']], functi ], 404); }); // end fallback routes - }); // end API routes