Change 'index' into 'entries'.
This commit is contained in:
parent
38e5154536
commit
bc933f77f9
@ -1,19 +1,33 @@
|
|||||||
from flask import Blueprint, redirect, render_template, jsonify
|
from flask import Blueprint, redirect, render_template, jsonify
|
||||||
|
|
||||||
frontend = Blueprint('frontend', __name__, template_folder='templates', static_folder='static')
|
frontend = Blueprint(
|
||||||
|
'frontend',
|
||||||
|
__name__,
|
||||||
|
template_folder='templates',
|
||||||
|
static_folder='static'
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@frontend.route('/')
|
@frontend.route('/')
|
||||||
def root():
|
def root():
|
||||||
return redirect('index.html')
|
return redirect('entries')
|
||||||
|
|
||||||
@frontend.route('/index.html')
|
|
||||||
|
@frontend.route('/entries')
|
||||||
def index():
|
def index():
|
||||||
return render_template('index.html')
|
return render_template('index.html')
|
||||||
|
|
||||||
@frontend.route('/scheduler.html')
|
|
||||||
|
@frontend.route('/scheduler')
|
||||||
def scheduler():
|
def scheduler():
|
||||||
return render_template('scheduler.html')
|
return render_template('scheduler.html')
|
||||||
|
|
||||||
|
|
||||||
|
@frontend.route('/accounts')
|
||||||
|
def accounts():
|
||||||
|
return render_template('accounts.html')
|
||||||
|
|
||||||
|
|
||||||
@frontend.errorhandler(BaseException)
|
@frontend.errorhandler(BaseException)
|
||||||
def default_errorhandler(error):
|
def default_errorhandler(error):
|
||||||
return jsonify(title="Error", text="Error %s" % str(error)), 500
|
return jsonify(title="Error", text="Error %s" % str(error)), 500
|
||||||
|
Loading…
Reference in New Issue
Block a user