From 13ad1d5f998145461a44068e917a9eec12ea185f Mon Sep 17 00:00:00 2001 From: CaliBrain Date: Mon, 14 Apr 2025 12:25:31 -0400 Subject: [PATCH] Fix dual routes bug in prod (#129) --- app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index 9c5145b1..c9b1ca16 100644 --- a/app.py +++ b/app.py @@ -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,