From bc933f77f9e65e825b427f0c7bbec9cbddd4cc39 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Fri, 10 Jul 2015 11:49:42 +0200 Subject: [PATCH] Change 'index' into 'entries'. --- accountant/frontend/__init__.py | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/accountant/frontend/__init__.py b/accountant/frontend/__init__.py index 308f2a0..c21de60 100644 --- a/accountant/frontend/__init__.py +++ b/accountant/frontend/__init__.py @@ -1,19 +1,33 @@ 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('/') def root(): - return redirect('index.html') + return redirect('entries') -@frontend.route('/index.html') + +@frontend.route('/entries') def index(): return render_template('index.html') -@frontend.route('/scheduler.html') + +@frontend.route('/scheduler') def scheduler(): return render_template('scheduler.html') + +@frontend.route('/accounts') +def accounts(): + return render_template('accounts.html') + + @frontend.errorhandler(BaseException) def default_errorhandler(error): return jsonify(title="Error", text="Error %s" % str(error)), 500