update
This commit is contained in:
@@ -598,6 +598,7 @@ Route::prefix('v1')
|
||||
Route::post('vm/suspend', 'suspend')->middleware('perm:module-vcenter.edit');
|
||||
Route::post('vm/update-config', 'updateConfig')->middleware('perm:module-vcenter.edit');
|
||||
Route::post('vm/delete', 'deleteVM')->middleware('perm:module-vcenter.edit');
|
||||
Route::get('vm/stats', 'stats')->middleware('perm:module-vcenter.view');
|
||||
Route::get('vms/powered-off', 'getPoweredOffVms')->middleware('perm:module-vcenter.view');
|
||||
});
|
||||
|
||||
@@ -615,6 +616,10 @@ Route::prefix('v1')
|
||||
->controller(NotificationController::class)
|
||||
->group(function () {
|
||||
Route::get('/', fn() => app(NotificationController::class)->index(request(), 'admin'));
|
||||
Route::get(
|
||||
'{id}',
|
||||
fn($id) => app(NotificationController::class)->show(request(), 'admin', (int) $id),
|
||||
)->whereNumber('id');
|
||||
Route::patch(
|
||||
'{id}/read',
|
||||
fn($id) => app(NotificationController::class)->markRead(request(), 'admin', (int) $id),
|
||||
|
||||
Reference in New Issue
Block a user