Add sitemap.xml and robots.txt for SEO optimization

This commit is contained in:
2025-08-04 11:29:06 +02:00
parent a131fc8077
commit 53d5309d65
3 changed files with 102 additions and 1 deletions

6
app.py
View File

@@ -503,6 +503,12 @@ def api_docs():
response = make_response(render_template('swagger.html'))
return add_cache_headers(response)
@app.route('/sitemap.xml')
def sitemap():
"""Serviert die Sitemap für Suchmaschinen"""
from flask import send_file
return send_file('sitemap.xml', mimetype='application/xml')
if __name__ == '__main__':
app.run(debug=True, host="0.0.0.0")