do not apply auth to static endpoints

This commit is contained in:
dandds 2018-08-06 14:27:42 -04:00
parent 6be3ce89bf
commit 6c4e27655d

View File

@ -3,7 +3,7 @@ from flask import g, redirect, url_for, session, request
from atst.domain.users import Users
UNPROTECTED_ROUTES = ["atst.root", "atst.login_dev", "atst.login_redirect", "atst.unauthorized"]
UNPROTECTED_ROUTES = ["atst.root", "atst.login_dev", "atst.login_redirect", "atst.unauthorized", "static"]
def apply_authentication(app):
@app.before_request