Rename blueprints and api.

This commit is contained in:
Alexis Lahouze
2016-01-13 00:02:38 +01:00
parent fe525dde46
commit 832da874c9
7 changed files with 20 additions and 20 deletions

View File

@ -1,7 +1,7 @@
from flask import Blueprint, render_template
from flask.ext.assets import Environment, Bundle
frontend = Blueprint(
blueprint = Blueprint(
'frontend',
__name__,
template_folder='templates',
@ -15,7 +15,7 @@ frontend_js = Bundle('frontend/js/app.js', 'frontend/js/accounts.js',
frontend_css = Bundle('frontend/css/main.css')
@frontend.route('/', defaults={'path': 'accounts'})
@frontend.route('/<path:path>')
@blueprint.route('/', defaults={'path': 'accounts'})
@blueprint.route('/<path:path>')
def index(path):
return render_template('layout.html')