🔍 sitemap

This commit is contained in:
mi
2025-11-15 14:46:49 +10:00
parent fcb38e593c
commit b23f2399c4
4 changed files with 104 additions and 1 deletions

7
app.py
View File

@@ -232,6 +232,13 @@ def api_comic(comic_id):
return jsonify(comic)
@app.route('/sitemap.xml')
def sitemap():
"""Serve the static sitemap.xml file"""
from flask import send_from_directory
return send_from_directory('static', 'sitemap.xml', mimetype='application/xml')
@app.errorhandler(404)
def page_not_found(e):
"""404 error handler"""