This commit is contained in:
pbao9
2026-02-10 16:49:59 +07:00
parent 057353a2e1
commit 3ece85430c
6 changed files with 254 additions and 11514 deletions
+12
View File
@@ -44,6 +44,7 @@ use Illuminate\Support\Str;
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
Route::get('/', fn() => response()->json(['api' => 'ok']));
Route::prefix('v1')
/* Api for Admin */
@@ -63,6 +64,10 @@ Route::prefix('v1')
Log::info('🧪 API Test SSH Connection - Starting test via route');
return response()->json($serviceVCenter->testSSHConnection());
})->name('api.testSSHConnection');
Route::post('rebuild-vps', [\App\Http\Controllers\Api\VpsActionController::class, 'rebuildVps'])
->name('api.system.rebuildVps');
Route::get('get-list-product', function () {
$type_id = \request()->get('type');
if (!$type_id) {
@@ -1536,3 +1541,10 @@ Route::prefix('v1')
});
});
Route::any('{any}', function () {
return response()->json([
'error' => true,
'message' => 'API Route not found'
], 404);
})->where('any', '.*');