A free open source IT asset/license management system
Fix to rate-limiter on higher rate-limits
Brady Wetherington8194c6efdb7e
diff --git a/app/Http/Kernel.php b/app/Http/Kernel.phpindex 051f53fc02..729fe75175 100644--- a/app/Http/Kernel.php+++ b/app/Http/Kernel.php@@ -52,7 +52,6 @@ class Kernel extends HttpKernel'auth:api',\App\Http\Middleware\CheckLocale::class,\Illuminate\Routing\Middleware\SubstituteBindings::class,- \App\Http\Middleware\SetAPIResponseHeaders::class,],'health' => [@@ -74,6 +73,7 @@ class Kernel extends HttpKernel'can' => \Illuminate\Auth\Middleware\Authorize::class,'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,+ 'api-throttle' => \App\Http\Middleware\SetAPIResponseHeaders::class,'health' => null,];}diff --git a/routes/api.php b/routes/api.phpindex 60e7c3cddf..e9edc1b5be 100644--- a/routes/api.php+++ b/routes/api.php@@ -15,7 +15,7 @@ use Illuminate\Support\Facades\Route;|*/-Route::group(['prefix' => 'v1', 'middleware' => ['api', 'throttle:api']], function () {+Route::group(['prefix' => 'v1', 'middleware' => ['api', 'api-throttle:api']], function () {Route::get('/', function () {