app blueprints

master
km0 3 years ago
parent e9ffb5d3e3
commit ff1957bec9

1
.gitignore vendored

@ -15,3 +15,4 @@ build/
*.egg-info/ *.egg-info/
.env .env
.vscode

@ -31,6 +31,16 @@ def create_app(test_config=None):
mimetype="image/vnd.microsoft.icon", 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.PrefixMiddleware(
app.wsgi_app, prefix=os.environ.get("URL_PREFIX", "") app.wsgi_app, prefix=os.environ.get("URL_PREFIX", "")
) )
return app

Loading…
Cancel
Save