feat(topology): add snapshot query logic, API route, and Flask app entry

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-07-09 20:50:09 +08:00
co-authored by Claude
parent 29fc482bb0
commit e4b633e25d
3 changed files with 284 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
# topology_api/app.py
from flask import Flask
from topology_api.config import API_HOST, API_PORT, API_DEBUG
from topology_api.routes.snapshot import snapshot_bp
def create_app():
app = Flask(__name__)
app.register_blueprint(snapshot_bp)
@app.route("/health")
def health():
return {"status": "ok"}
return app
if __name__ == "__main__":
app = create_app()
app.run(host=API_HOST, port=API_PORT, debug=API_DEBUG)