Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
UTI: Simplify the News
[csit.git]
/
resources
/
tools
/
dash
/
app
/
pal
/
routes.py
diff --git
a/resources/tools/dash/app/pal/routes.py
b/resources/tools/dash/app/pal/routes.py
index
16680c4
..
59af748
100644
(file)
--- a/
resources/tools/dash/app/pal/routes.py
+++ b/
resources/tools/dash/app/pal/routes.py
@@
-11,17
+11,22
@@
# See the License for the specific language governing permissions and
# limitations under the License.
# See the License for the specific language governing permissions and
# limitations under the License.
-"""Routes for parent Flask app."""
+"""Routes for parent Flask app.
+"""
+
from flask import current_app as app
from flask import render_template
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():
def home():
- """Landing page."""
+ """Landing page.
+ """
return render_template(
return render_template(
-
"index.jinja2"
,
- title=
"FD.io CSIT"
,
- description=
"Performance Dashboard"
,
- template=
"home-template"
+
C.MAIN_HTML_LAYOUT_FILE
,
+ title=
C.TITLE
,
+ description=
C.DESCRIPTION
,
+ template=
C.TEMPLATE
)
)