cleaning up test functions from app.py

This commit is contained in:
gashapwn 2020-11-27 00:04:32 +00:00
parent f6ca5b2f7a
commit 30d1cbe904

10
app.py
View File

@ -34,14 +34,6 @@ def home():
def rules():
return render_template("rules.html")
def home2(name):
# app.route('/home2/<name>')
# return redirect(url_for('home'))
return render_template("home.html")
def success(name):
return "welcome %s" % name
# this is a weird way to do this
# right?
def widg_fun(widg):
@ -119,9 +111,7 @@ def login():
return redirect(url_for('home'))
if __name__=="__main__":
app.add_url_rule('/home2/<name>', 'home2', home2)
app.add_url_rule('/rules', 'rules', rules)
app.add_url_rule('/success/<name>', 'success', success)
app.add_url_rule('/login', 'login', login, methods = ['POST', 'GET'])
app.add_url_rule('/req', 'req', req, methods = ['POST', 'GET'])
app.add_url_rule('/req/signup', 'signup', signup, methods = ['POST'])