Created
June 22, 2020 08:11
-
-
Save vamsijakkula/ad127695d7fe07d248c0c94e4d6067e6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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