diff options
author | Stephen Wong <stephen.kf.wong@gmail.com> | 2018-08-19 07:18:24 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-08-19 07:18:24 +0000 |
commit | e35bd25993a9bce37f17cf4353f0aa97d20e9c13 (patch) | |
tree | 29b31e3558830d6ca427810b6c1e75cdf027e888 /clover/controller/control/views/dashboard.py | |
parent | 94cd16d7b0dc898e0c54ebe0f8378f27ded67e14 (diff) | |
parent | f38f41124db707b390e8f21c1a91e1022b3633ab (diff) |
Merge "Implement initial clover-controller service"
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) |