diff --git a/login.py b/login.py new file mode 100644 index 0000000..68a9a63 --- /dev/null +++ b/login.py @@ -0,0 +1,10 @@ +import main +import flask + +@main.app.route("/login", methods = ['POST', 'GET']) +def login(): + if (flask.request.methods == ['GET']): + return (flask.render_template("login/login.html")) + else: + email = flask.request.form['email'] + password = flask.request.form['password'] diff --git a/main.py b/main.py index 9ff9de9..2bb8df2 100644 --- a/main.py +++ b/main.py @@ -6,7 +6,6 @@ app = flask.Flask(__name__) def home(): return "
Hello, World!
" - if (__name__ == "__main__"): app.run()