Created
June 22, 2020 08:10
-
-
Save vamsijakkula/46cd31910be6ee197b39725ffccc7735 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