apply authentication to the whole app, track exceptions

This commit is contained in:
dandds
2018-08-06 14:06:06 -04:00
parent 0a754d72a3
commit d693db7dbb
8 changed files with 33 additions and 39 deletions

View File

@@ -5,7 +5,6 @@ import pendulum
from atst.domain.requests import Requests
from atst.domain.users import Users
from atst.domain.authnid.utils import parse_sdn
from atst.domain.auth import login_required
bp = Blueprint("atst", __name__)
@@ -16,19 +15,16 @@ def root():
@bp.route("/home")
@login_required
def home():
return render_template("home.html")
@bp.route("/styleguide")
@login_required
def styleguide():
return render_template("styleguide.html")
@bp.route('/<path:path>')
@login_required
def catch_all(path):
return render_template("{}.html".format(path))