add: api for rate control

This commit is contained in:
h z
2024-12-06 16:12:44 +00:00
parent b3ec244e06
commit eaa2350b72
6 changed files with 70 additions and 18 deletions

3
app.py
View File

@@ -44,7 +44,10 @@ def log_request():
logger.info(f"Request received: {request.method} {request.path} from {request.remote_addr}")
if __name__ == '__main__':
api.init_rate_limits(app)
#logger.info("Starting app")
pprint(env_provider.summerize())
app.run(host='0.0.0.0', port=5000)