Copywriting

This commit is contained in:
notplants 2022-03-15 18:41:13 -06:00
parent 3d2e637d57
commit b3e757af88
1 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ if not os.path.exists(DATA_DIR):
os.mkdir(DATA_DIR)
@app.route("/")
@app.route("/index")
def index():
return "Index!"
@ -21,7 +21,7 @@ def hello():
return "Hello World!"
@app.route("/form")
@app.route("/")
def form():
return render_template(
'form.html',**locals())
@ -36,7 +36,7 @@ def form_post():
file_path = os.path.join(DATA_DIR, filename)
with open(file_path, 'w') as f:
f.write(json.dumps(data))
return "form submitted"
return "your form submission was saved, thank you"
if __name__ == "__main__":