create notification bruno request and move some routes
This commit is contained in:
1 parent
090db4205a
commit
7390ae6116
21 files changed
+113
-37
No files matched your search
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\NotificationsController;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
Route::middleware(['web', 'auth:sanctum'])->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');
|
||||
Reference in new issue
Block a user