add test route
Browse files
main.py
CHANGED
|
@@ -6,6 +6,10 @@ app = Flask(__name__)
|
|
| 6 |
def hello():
|
| 7 |
return {"hello":"Deploy success"}
|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
@app.route("/test/<text>")
|
| 10 |
def returnText(text):
|
| 11 |
return f'The text is {text}'
|
|
|
|
| 6 |
def hello():
|
| 7 |
return {"hello":"Deploy success"}
|
| 8 |
|
| 9 |
+
@app.route("/test")
|
| 10 |
+
def test():
|
| 11 |
+
return "Test success"
|
| 12 |
+
|
| 13 |
@app.route("/test/<text>")
|
| 14 |
def returnText(text):
|
| 15 |
return f'The text is {text}'
|