This commit is contained in:
2025-11-11 14:09:21 +01:00
parent bcd0a10576
commit 1075a91eac
57 changed files with 5598 additions and 1366 deletions

View File

@@ -7,6 +7,8 @@ from routes.news_routes import news_bp
from routes.rss_routes import rss_bp
from routes.ollama_routes import ollama_bp
from routes.newsletter_routes import newsletter_bp
from routes.tracking_routes import tracking_bp
from routes.analytics_routes import analytics_bp
# Initialize Flask app
app = Flask(__name__)
@@ -21,9 +23,17 @@ app.register_blueprint(news_bp)
app.register_blueprint(rss_bp)
app.register_blueprint(ollama_bp)
app.register_blueprint(newsletter_bp)
app.register_blueprint(tracking_bp)
app.register_blueprint(analytics_bp)
# Health check endpoint
@app.route('/health')
def health():
return {'status': 'healthy', 'service': 'munich-news-backend'}, 200
# Print configuration
Config.print_config()
if __name__ == '__main__':
app.run(debug=True, port=Config.FLASK_PORT, host='127.0.0.1')
# Use 0.0.0.0 to allow Docker container access
app.run(debug=True, port=Config.FLASK_PORT, host='0.0.0.0')