Skip to content

Commit 2cb3f50

Browse files
committed
feat: health-check
1 parent a022b90 commit 2cb3f50

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

routes/api.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,10 @@
7676
Route::resource('/categories', CategoryController::class)->only(['show']);
7777
Route::resource('/playback', PlaybackController::class)->only(['show', 'store']);
7878

79+
// healthcheck
80+
Route::get('/health', function () {
81+
return response()->json(['health' => 1]);
82+
});
83+
7984
Route::get('/{dir}', [DirectoryController::class, 'showDirectoryAPI']);
8085
Route::get('/{dir}/{folderName}', [DirectoryController::class, 'showDirectoryAPI']);

0 commit comments

Comments
 (0)