aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/dash/app/pal/routes.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2022-07-20 15:51:21 +0200
committerTibor Frank <tifrank@cisco.com>2022-07-21 07:45:39 +0000
commitae1fe880286d7b0414664bce2b2c7c91c3f543f3 (patch)
tree5790af6de3884e0aa6918d44f23aca59cf0d86a7 /resources/tools/dash/app/pal/routes.py
parent739e01de7a65045dc42e6c16406a6d054da72f7b (diff)
UTI: Move constatns to a separate file
Change-Id: If3796b71d02bcf5a92612585dfa8867e5039f037 Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/dash/app/pal/routes.py')
-rw-r--r--resources/tools/dash/app/pal/routes.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/resources/tools/dash/app/pal/routes.py b/resources/tools/dash/app/pal/routes.py
index d4cd88ffce..59af748168 100644
--- a/resources/tools/dash/app/pal/routes.py
+++ b/resources/tools/dash/app/pal/routes.py
@@ -17,14 +17,16 @@
from flask import current_app as app
from flask import render_template
+from .utils.constants import Constants as C
-@app.route("/")
+
+@app.route(C.APPLICATIN_ROOT)
def home():
"""Landing page.
"""
return render_template(
- "index_layout.jinja2",
- title="FD.io CSIT",
- description="Performance Dashboard",
- template="d-flex h-100 text-center text-white bg-dark"
+ C.MAIN_HTML_LAYOUT_FILE,
+ title=C.TITLE,
+ description=C.DESCRIPTION,
+ template=C.TEMPLATE
)