18 lines
283 B
Python
18 lines
283 B
Python
from flask import Flask
|
|
|
|
app = Flask(__name__)
|
|
|
|
|
|
@app.route("/")
|
|
def index():
|
|
return "contracts-flask OK"
|
|
|
|
|
|
@app.route("/health")
|
|
def health():
|
|
return {"ok": True, "service": "contracts-flask"}
|
|
|
|
|
|
if __name__ == "__main__":
|
|
app.run(debug=False, host="0.0.0.0", port=5000)
|