mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Use rate limiter for API calls
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
a7dc6162fa
commit
5c30de517d
|
@ -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 () {
|
||||
|
|
Loading…
Reference in a new issue