Add login and register templates and routes

This commit is contained in:
Stephan Porada
2019-07-04 15:17:51 +02:00
parent e127e1e5c4
commit fed711d23b
5 changed files with 96 additions and 0 deletions

View File

@ -0,0 +1,5 @@
from flask import Blueprint
auth = Blueprint('auth', __name__)
from . import views

View File

@ -0,0 +1,12 @@
from flask import render_template
from . import auth
@auth.route('/login', methods=['GET', 'POST'])
def login():
return render_template('auth/login.html.j2')
@auth.route('/register', methods=['GET', 'POST'])
def register():
return render_template('auth/register.html.j2')