Add endpoints: /api/gps/latest-any and /api/gps/recent

This commit is contained in:
2025-08-29 16:22:36 +10:00
parent 6b025255e4
commit bde8fbab81
2 changed files with 33 additions and 2 deletions

View File

@@ -7,4 +7,6 @@ Route::get('/health', fn () => response()->json(['ok' => true]));
Route::post('/gps', [GpsController::class, 'store']);
Route::get('/gps/latest', [GpsController::class, 'latest']);
Route::get('/gps/track', [GpsController::class, 'track']);
Route::get('/gps/track', [GpsController::class, 'track']);
Route::get('/gps/latest-any', [GpsController::class, 'latestAny']);
Route::get('/gps/recent', [GpsController::class, 'recent']);