deploy / deploy (push) Successful in 4m48s
Change-Id: If4e8a826d76819817e111cc7477a135f0c871db9
22 lines
388 B
Python
22 lines
388 B
Python
from flask import Flask, jsonify, render_template
|
|
|
|
app = Flask(__name__)
|
|
|
|
|
|
@app.route("/health")
|
|
def health():
|
|
return jsonify(status="ok", service="sethtest"), 200
|
|
|
|
|
|
@app.route("/")
|
|
def index():
|
|
return render_template(
|
|
"index.html",
|
|
name="sethtest",
|
|
description="Seth doing stuff",
|
|
)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
app.run(host="0.0.0.0", port=8080)
|