Skip to content

Instantly share code, notes, and snippets.

@vamsijakkula
Created June 22, 2020 08:11
Show Gist options
  • Save vamsijakkula/ad127695d7fe07d248c0c94e4d6067e6 to your computer and use it in GitHub Desktop.
Save vamsijakkula/ad127695d7fe07d248c0c94e4d6067e6 to your computer and use it in GitHub Desktop.
import time
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello"
@app.route('/hellovamsi')
def hellovamsi():
return "Hello From Vamsi!"
@app.route('/healthz')
def healthz():
return "OK"
@app.route('/healthx')
def healthx():
time.sleep(1);
return "OK"
if __name__ == "__main__":
app.run(host='0.0.0.0')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment