From d7e7d248cbe41cd7a9ef9c2fb022b6c4831f99a3 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 31 May 2026 15:22:56 +0000
Subject: [PATCH] =jakevan complete
---
inc/rest/routes/ImporterRoutes.php | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/inc/rest/routes/ImporterRoutes.php b/inc/rest/routes/ImporterRoutes.php
index 2e4bdaf..b5debfa 100644
--- a/inc/rest/routes/ImporterRoutes.php
+++ b/inc/rest/routes/ImporterRoutes.php
@@ -33,7 +33,8 @@
'options' => 'string', // JSON string of options
])
->auth('admin')
- ->rateLimit(3, 300); // 3 imports per 5 minutes
+ ->rateLimit(3, 300)
+ ->register(); // 3 imports per 5 minutes
// Sales import endpoint
Route::for('jane/import-sales')
@@ -42,14 +43,16 @@
'options' => 'string', // JSON string of options
])
->auth('admin')
- ->rateLimit(3, 300); // 3 imports per 5 minutes
+ ->rateLimit(3, 300)
+ ->register(); // 3 imports per 5 minutes
// Get import status
Route::for(Route::pattern('jane/import-status/{id}'))
->get([$this, 'getImportStatus'])
->arg('id', 'string|required')
->auth('admin')
- ->rateLimit(30, 60);
+ ->rateLimit(30)
+ ->register();
}
/**
--
Gitblit v1.10.0