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