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 32abb2e commit 4fa28dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 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,7 +16,7 @@ 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":
return "Dinosaurs ruled the Earth 200 million years ago"
Expand Down

0 comments on commit 4fa28dc

Please sign in to comment.