update
This commit is contained in:
@@ -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', '.*');
|
||||
|
||||
Reference in New Issue
Block a user