|
|
@ -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
|
|
|
|