Rename blueprints and api.
This commit is contained in:
@ -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')
|
||||
|
Reference in New Issue
Block a user