fix: proper route structure - API in api.php, web in web.php

This commit is contained in:
F4ilji
2026-07-02 17:10:44 +05:00
parent b2fec84080
commit fce1d3f454
2 changed files with 6 additions and 4 deletions
@@ -421,10 +421,6 @@ Route::middleware(['access-check', 'dashboard.auth'])->group(function () {
Route::get('/dashboard/deploy', function () {
return inertia()->render('Dashboard/Deploy/Index');
})->name('dashboard.deploy');
// Deploy API
Route::post('/api/deploy', [\App\Containers\Dashboard\UI\API\Controllers\DeployController::class, 'store']);
Route::get('/api/deploy/status', [\App\Containers\Dashboard\UI\API\Controllers\DeployController::class, 'status']);
});
+6
View File
@@ -1 +1,7 @@
<?php
use Illuminate\Support\Facades\Route;
Route::middleware(['web', 'auth:web'])->group(function () {
require __DIR__.'/../app/Containers/Dashboard/UI/API/Routes/api.php';
});