nopaque/app/main/__init__.py

12 lines
222 B
Python
Raw Normal View History

from flask import Blueprint
2019-11-12 12:36:22 +00:00
main = Blueprint('main', __name__)
2019-11-06 12:22:18 +00:00
from . import errors, views
2019-11-12 12:36:22 +00:00
from app.models import Permission
@main.app_context_processor
def inject_permissions():
return dict(Permission=Permission)