From 0b01cf04aa30d57ed5542a4176050a5dd70165d4 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Tue, 12 Apr 2016 11:00:04 +0200 Subject: [PATCH] Cleanup old frontend. --- accountant/__init__.py | 4 +--- accountant/frontend/__init__.py | 13 ------------- 2 files changed, 1 insertion(+), 16 deletions(-) delete mode 100644 accountant/frontend/__init__.py diff --git a/accountant/__init__.py b/accountant/__init__.py index ae6a20c..d1487f2 100644 --- a/accountant/__init__.py +++ b/accountant/__init__.py @@ -30,13 +30,11 @@ 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 -#app.register_blueprint(frontend, url_prefix='/app') app.register_blueprint(api, url_prefix='/api') -# Redirect / to frontend index. +# Redirect / to API documentation. @app.route('/') def index(): return redirect(url_for('api.doc')) diff --git a/accountant/frontend/__init__.py b/accountant/frontend/__init__.py deleted file mode 100644 index ed93501..0000000 --- a/accountant/frontend/__init__.py +++ /dev/null @@ -1,13 +0,0 @@ -from flask import Blueprint, redirect, url_for - -blueprint = Blueprint( - 'frontend', - __name__, - template_folder='templates', - static_folder='static' -) - - -@blueprint.route('/') -def index(): - return redirect(url_for('frontend.static', filename='index.html'))