toxic_test / main.py
HMPhuoc's picture
add test route
4de9537
raw
history blame
256 Bytes
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return {"hello":"Deploy success"}
@app.route("/test")
def test():
return "Test success"
@app.route("/test/<text>")
def returnText(text):
return f'The text is {text}'