Swagger/OpenAPI-Doku unter /api-docs, Link im Footer, keine Überschneidung mit API-Endpunkten

This commit is contained in:
2025-07-25 12:14:22 +02:00
parent 77a6b5c2c2
commit d24f93d039
4 changed files with 256 additions and 0 deletions

4
app.py
View File

@@ -302,6 +302,10 @@ def api_monitor():
"pageviews_last_7_days": pageviews
})
@app.route('/api-docs')
def api_docs():
return render_template('swagger.html')
if __name__ == '__main__':
app.run(debug=True, host="0.0.0.0")