Skip to content

A free open source IT asset/license management system

Use rate limiter for API calls

snipe5c30de517d6d
diff --git a/routes/api.php b/routes/api.php
index 921af2f1c3..29af435687 100644
--- a/routes/api.php
+++ b/routes/api.php
@@ -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 () {