app blueprints

master
km0 3 years ago
parent e9ffb5d3e3
commit ff1957bec9

3
.gitignore vendored

@ -14,4 +14,5 @@ dist/
build/
*.egg-info/
.env
.env
.vscode

@ -31,6 +31,16 @@ def create_app(test_config=None):
mimetype="image/vnd.microsoft.icon",
)
from . import home
app.register_blueprint(home.bp)
from . import contents
app.register_blueprint(contents.bp)
app.wsgi_app = prefix.PrefixMiddleware(
app.wsgi_app, prefix=os.environ.get("URL_PREFIX", "")
)
return app

Loading…
Cancel
Save