mirror of
https://github.com/calibrain/shelfmark.git
synced 2026-09-24 19:40:26 +01:00
Fix dual routes bug in prod (#129)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user