|
|
@ -9,7 +9,7 @@ bp = Blueprint('admin', __name__, url_prefix='/admin') |
|
|
|
|
|
|
|
|
|
|
|
@bp.before_app_request |
|
|
|
@bp.before_app_request |
|
|
|
def authenticate(): |
|
|
|
def authenticate(): |
|
|
|
print(request.path) |
|
|
|
# Some views don't need authentication |
|
|
|
if request.path == '/admin/login' or request.path.startswith('/doc/') or request.path == '/api/doc/build': |
|
|
|
if request.path == '/admin/login' or request.path.startswith('/doc/') or request.path == '/api/doc/build': |
|
|
|
return |
|
|
|
return |
|
|
|
|
|
|
|
|
|
|
|