An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
refactor(api): restructure routes to include versioning and maintain existing feedback endpoint
Andras Bacsai91f28656350c
diff --git a/routes/api.php b/routes/api.phpindex b65e59e8b9..ba78034d83 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',