refactor(api): validate and throttle feedback endpoint (#9653)

This commit is contained in:
Andras Bacsai authored and GitHub committed 2026-04-19 14:50:03 +02:00
commit 371e883c75
5 files changed
+110 -5

No files matched your search

+2 -1
View File
@@ -26,7 +26,8 @@ Route::group([
Route::get('/health', [OtherController::class, 'healthcheck']);
});
Route::post('/feedback', [OtherController::class, 'feedback']);
Route::post('/feedback', [OtherController::class, 'feedback'])
->middleware('throttle:feedback');
Route::group([
'middleware' => ['auth:sanctum', 'api.ability:write'],