Cleanup old frontend.

This commit is contained in:
Alexis Lahouze 2016-04-12 11:00:04 +02:00
parent 1917fe909d
commit 0b01cf04aa
2 changed files with 1 additions and 16 deletions

View File

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

View File

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