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/IntegrationsSquareRoutes.php | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/inc/rest/routes/IntegrationsSquareRoutes.php b/inc/rest/routes/IntegrationsSquareRoutes.php
index 596be1e..4734a65 100644
--- a/inc/rest/routes/IntegrationsSquareRoutes.php
+++ b/inc/rest/routes/IntegrationsSquareRoutes.php
@@ -20,22 +20,26 @@
Route::for('square/process-payment')
->post([$this, 'handlePaymentProcessing'])
->auth('public')
- ->rateLimit(2);
+ ->rateLimit(2)
+ ->register();
Route::for('square/saved-cards')
->post([$this, 'getSavedCards'])
->auth('user')
- ->rateLimit(5);
+ ->rateLimit(5)
+ ->register();
Route::for('square/order-history')
->get([$this, 'getOrderHistory'])
->auth('user')
- ->rateLimit(5);
+ ->rateLimit(5)
+ ->register();
Route::for(Route::pattern('square/order-status/{order_id}'))
->get([$this, 'getOrderStatus'])
->auth('public')
- ->rateLimit(20);
+ ->rateLimit(20)
+ ->register();
}
//TODO: Are we processing this through our server at all? Or is it in the javascript going straight to square?
--
Gitblit v1.10.0