From 6231059b8248a3127f70339e3eb35a64b7030d48 Mon Sep 17 00:00:00 2001 From: Brosef Date: Wed, 3 Jun 2026 18:59:09 +0100 Subject: [PATCH] Added limit API endpoint --- app.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app.py b/app.py index 5928bfc..9121b19 100644 --- a/app.py +++ b/app.py @@ -85,6 +85,14 @@ def transmit(): # Return a success message return {'success': True}, 200 +@app.route('/limit', methods=['GET'], strict_slashes=False) +@limiter.limit("1/second") +def getLimit(): + """ + Simply returns the safe limit. + """ + + return {'success': True, 'limit': app.config['limit']} if __name__ == '__main__': # Parse console arguments