Fix dual routes bug in prod (#129)

This commit is contained in:
CaliBrain
2025-04-14 12:25:31 -04:00
committed by GitHub
parent 7dbc937507
commit 13ad1d5f99
+3 -3
View File
@@ -250,10 +250,10 @@ def internal_error(error: Exception) -> Union[Response, Tuple[Response, int]]:
return jsonify({"error": "Internal server error"}), 500
# Register all routes with /request prefix
register_dual_routes(app)
if __name__ == '__main__':
# Register all routes with /request prefix
register_dual_routes(app)
logger.info(f"Starting Flask application on {FLASK_HOST}:{FLASK_PORT} IN {APP_ENV} mode")
app.run(
host=FLASK_HOST,