Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Guanghong Zheng committed Oct 21, 2024
1 parent 2d948d6 commit 32abb2e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
app = Flask(__name__)


@app.route("/submit", methods=["POST"])
@app.route("/submit", methods = ["POST"])
def submit():
input_name = request.form.get("name")
input_age = request.form.get("age")
Expand All @@ -16,9 +16,9 @@ def hello_world():
return render_template("index.html")


@app.route("/get", methods=["GET"])
@app.route("/get", methods = ["GET"])
def process_query(query):
if query=="dinosaurs":
if query == "dinosaurs":
return "Dinosaurs ruled the Earth 200 million years ago"
else:
return "Unknown"

0 comments on commit 32abb2e

Please sign in to comment.