From 24bd0ddecca2ba92e67e27ca4d46ef90a2517dd1 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Tue, 12 Apr 2016 10:43:25 +0200 Subject: [PATCH] Disable frontend in flask app, redirect to swagger doc instead of frontend index. --- accountant/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/accountant/__init__.py b/accountant/__init__.py index 04ea72d..ae6a20c 100644 --- a/accountant/__init__.py +++ b/accountant/__init__.py @@ -30,13 +30,13 @@ db = SQLAlchemy(app) # Must be after db declaration because some components in blueprints need it. from .api import blueprint as api -from .frontend import blueprint as frontend +#from .frontend import blueprint as frontend -app.register_blueprint(frontend, url_prefix='/app') +#app.register_blueprint(frontend, url_prefix='/app') app.register_blueprint(api, url_prefix='/api') # Redirect / to frontend index. @app.route('/') def index(): - return redirect(url_for('frontend.index')) + return redirect(url_for('api.doc'))