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