add methods for EventPicture'

This commit is contained in:
Giovanni committed 2026-04-01 23:30:17 +02:00
1 parent 615c084995
commit 9ae484d584
5 files changed
+89 -50

No files matched your search

+6
View File
@@ -34,3 +34,9 @@ Route::middleware(['web', 'auth:sanctum'])->get('/events/search', [SearchControl
Route::middleware(['web', 'auth:sanctum'])->get('/events/{id}', [EventsController::class, "getEvent"]);
Route::middleware(['web', 'auth:sanctum'])->get('/events/tasks/{id}/assigned', [EventsController::class, "isUserAssigned"]);
Route::middleware(['web', 'auth:sanctum'])->get('/events/{id}/photo', [EventsController::class, 'show']);
Route::middleware(['web', 'auth:sanctum'])->post('/events/{id}/photo/update', [EventsController::class, 'updatePhoto']);
Route::middleware(['web', 'auth:sanctum'])->delete('/events/{id}/photo', [EventsController::class, 'destroy']);