fix: proper route structure - API in api.php, web in web.php
This commit is contained in:
@@ -421,10 +421,6 @@ Route::middleware(['access-check', 'dashboard.auth'])->group(function () {
|
|||||||
Route::get('/dashboard/deploy', function () {
|
Route::get('/dashboard/deploy', function () {
|
||||||
return inertia()->render('Dashboard/Deploy/Index');
|
return inertia()->render('Dashboard/Deploy/Index');
|
||||||
})->name('dashboard.deploy');
|
})->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']);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Support\Facades\Route;
|
||||||
|
|
||||||
|
Route::middleware(['web', 'auth:web'])->group(function () {
|
||||||
|
require __DIR__.'/../app/Containers/Dashboard/UI/API/Routes/api.php';
|
||||||
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user