From df6c00db050e188a6bd5707e72c4f1f331ced923 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 08 Feb 2026 20:46:43 +0000
Subject: [PATCH] =Port over to jakevan 2
---
inc/rest/routes/FormRoutes.php | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/inc/rest/routes/FormRoutes.php b/inc/rest/routes/FormRoutes.php
index 9b136e2..e6be516 100644
--- a/inc/rest/routes/FormRoutes.php
+++ b/inc/rest/routes/FormRoutes.php
@@ -57,14 +57,16 @@
->rateLimit(5) // 5 submissions per minute
->get([$this, 'getForms'])
->auth(PermissionHandler::combine(['logged_in', ['actionNonce'=>'dash-']]))
- ->rateLimit(30);
+ ->rateLimit(30)
+ ->register();
// Get specific form configuration
Route::for(Route::pattern('forms/{form_type}'))
->get([$this, 'getForm'])
->arg('form_type', 'string|required')
->auth('logged_in')
- ->rateLimit(30);
+ ->rateLimit(30)
+ ->register();
}
/**
--
Gitblit v1.10.0