Use rate limiter for API calls

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-06-22 09:11:40 -07:00
parent a7dc6162fa
commit 5c30de517d

View file

@ -16,7 +16,7 @@ use Illuminate\Support\Facades\Route;
| |
*/ */
Route::group(['prefix' => 'v1', 'middleware' => ['api', 'throttle:'.config('app.api_throttle_per_minute').',1']], function () { Route::group(['prefix' => 'v1', 'middleware' => ['api', 'throttle:api']], function () {
Route::get('/', function () { Route::get('/', function () {