From 91f28656350c0c11c860cf9851b6c25baf0a5157 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Tue, 22 Apr 2025 11:05:55 +0200 Subject: [PATCH] refactor(api): restructure routes to include versioning and maintain existing feedback endpoint --- routes/api.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/routes/api.php b/routes/api.php index b65e59e8b..ba78034d8 100644 --- a/routes/api.php +++ b/routes/api.php @@ -16,8 +16,13 @@ use App\Models\Server; use Illuminate\Support\Facades\Route; Route::get('/health', [OtherController::class, 'healthcheck']); -Route::post('/feedback', [OtherController::class, 'feedback']); +Route::group([ + 'prefix' => 'v1', +], function () { + Route::get('/health', [OtherController::class, 'healthcheck']); +}); +Route::post('/feedback', [OtherController::class, 'feedback']); Route::group([ 'middleware' => ['auth:sanctum', 'api.ability:write'], 'prefix' => 'v1',