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

This commit is contained in:
Andras Bacsai
2026-04-19 14:50:03 +02:00
committed by GitHub
5 changed files with 110 additions and 5 deletions
+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'],