Zion Boggan zionboggan.com ↗
19 lines · python
History for this file →
1
import os
2
 
3
from flask import Flask, jsonify
4
 
5
app = Flask(__name__)
6
 
7
 
8
@app.get("/")
9
def index():
10
    return jsonify(service="supply-chain-demo", version=os.environ.get("APP_VERSION", "dev"))
11
 
12
 
13
@app.get("/healthz")
14
def healthz():
15
    return jsonify(status="ok")
16
 
17
 
18
if __name__ == "__main__":
19
    app.run(host="0.0.0.0", port=8080)