Skip to content

A free open source IT asset/license management system

Throttle got merged out - re-adding it

snipeba010618f7af
diff --git a/routes/api.php b/routes/api.php
index 76e34811e6..ff91add778 100644
--- a/routes/api.php
+++ b/routes/api.php
@@ -16,7 +16,8 @@ use Illuminate\Support\Facades\Route;
|
*/
-Route::group(['prefix' => 'v1', 'middleware' => 'api'], function () {
+Route::group(['prefix' => 'v1','namespace' => 'Api', 'middleware' => ['api', 'throttle:'.config('app.api_throttle_per_minute').',1']], function () {
+
Route::get('/', function () {
return response()->json(