Skip to content

Commit

Permalink
Revert "Set the url prefix on the blueprint."
Browse files Browse the repository at this point in the history
This reverts commit 5e806cf.

Not needed when using DispatcherMiddleware.
  • Loading branch information
dougthor42 committed Jan 29, 2019
1 parent 637f8de commit 2d2c069
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/trendlines/app_factory.py
Expand Up @@ -40,9 +40,8 @@ def create_app():


logger.debug("Registering blueprints.")
url_prefix = app.config.get("URL_PREFIX", None)
app.register_blueprint(routes.pages, url_prefix=url_prefix)
app.register_blueprint(routes.api, url_prefix=url_prefix)
app.register_blueprint(routes.pages)
app.register_blueprint(routes.api)

# Create the database file and populate initial tables if needed.
create_db(app.config['DATABASE'])
Expand Down

0 comments on commit 2d2c069

Please sign in to comment.