- Add web+superadmin middleware to /api/deploy routes - Return JSON 403 in EnsureUserIsSuperadmin for API requests - Remove Docker CLI and docker.sock from app container - Replace docker compose restart with supervisorctl - Add mysqldump backup step before migrations
10 lines
313 B
PHP
10 lines
313 B
PHP
<?php
|
|
|
|
use App\Containers\Dashboard\UI\API\Controllers\DeployController;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
Route::middleware(['web', 'superadmin'])->group(function () {
|
|
Route::post('/deploy', [DeployController::class, 'store']);
|
|
Route::get('/deploy/status', [DeployController::class, 'status']);
|
|
});
|