create notification bruno request and move some routes
This commit is contained in:
@@ -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');
|
||||
@@ -1,13 +1,8 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\AuthController;
|
||||
use App\Http\Controllers\SearchController;
|
||||
use App\Http\Controllers\UserController;
|
||||
use App\Http\Controllers\EventsController;
|
||||
use App\Http\Controllers\NotificationsController;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use App\Http\Controllers\TasksController;
|
||||
|
||||
|
||||
|
||||
@@ -37,15 +32,5 @@ Route::middleware(['web', 'auth:sanctum'])->get('/users/{id}/tasks', [UserContro
|
||||
|
||||
Route::middleware(['web', 'auth:sanctum'])->get('/users/tasks/{idTask}', [UserController::class, "getUserTaskById"]);
|
||||
|
||||
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');
|
||||
|
||||
Route::middleware(['web', 'auth:sanctum'])->get('/users/search', [SearchController::class, "searchUsers"]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user