diff options
Diffstat (limited to 'clover/controller/control/views/dashboard.py')
-rw-r--r-- | clover/controller/control/views/dashboard.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/clover/controller/control/views/dashboard.py b/clover/controller/control/views/dashboard.py new file mode 100644 index 0000000..8b6969c --- /dev/null +++ b/clover/controller/control/views/dashboard.py @@ -0,0 +1,19 @@ +# Copyright (c) Authors of Clover +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 + +from flask import Blueprint, render_template, abort +from jinja2 import TemplateNotFound + +simple_page = Blueprint('simple_page', __name__) + + +@simple_page.route('/dashboard', defaults={'page': 'index'}) +def show(page): + try: + return render_template('home.html') + except TemplateNotFound: + abort(404) |