get('/users/{id}/notifications', [NotificationsController::class, "getNotifications"]) ->whereNumber('id'); Route::middleware(['web', 'auth:sanctum'])->post("/users/{id}/create/notification", [NotificationsController::class, "createNotification"]) ->whereNumber('id'); Route::middleware(['web', 'auth:sanctum'])->delete('/users/{userId}/delete/notification/{notificationId}', [NotificationsController::class, 'deleteNotification']) ->whereNumber('userId') ->whereNumber('notificationId');