# Tim Marder
# SoftDev1 pd06
# K#13 -- Echo Echo Echo
# 2018-09-28

from flask import Flask, render_template, request
app = Flask(__name__) #create instance of class Flask

@app.route("/")       #assign fxn to route
def hello_world():
    return render_template("home.html")

@app.route("/auth", methods = ["GET", "POST"])
def authenticate():
    print(app)
    print(request)
    print(request.args)
    print(request.headers)
    return render_template("auth.html",
                            first = request.form['first'],
                            last = request.form['last'],
                            request = request.method)

if __name__ == "__main__":
    app.debug = True
    app.run()
