diff --git a/app.py b/app.py index 1c1a556..102e275 100644 --- a/app.py +++ b/app.py @@ -60,5 +60,10 @@ def create_user(): def home(): return render_template('home.html') +@app.route("/profile") +@auth_required() +def profile(): + return render_template('profile.html') + if __name__ == '__main__': app.run() \ No newline at end of file diff --git a/templates/home.html b/templates/home.html index 606271e..11a7b7d 100644 --- a/templates/home.html +++ b/templates/home.html @@ -1,6 +1,6 @@ {% extends "layout.html" %} {% block title %} -Home +Prototyp {% endblock %} {% block content %} diff --git a/templates/layout.html b/templates/layout.html index 1ee719c..b87b241 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -49,11 +49,11 @@ {% if current_user.is_authenticated %}