X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Ftools%2Fdash%2Fapp%2Fpal%2Froutes.py;h=59af748168c02ce34ab0058a8f64ac6c98807fb1;hb=808797d2d913eac7581a4e4cba3fb826ddbff775;hp=16680c4436d334fc5c2e6db3a46c1ae0519c1832;hpb=a5e8351152d9513811e2d6d9eaaf2180e35e002d;p=csit.git diff --git a/resources/tools/dash/app/pal/routes.py b/resources/tools/dash/app/pal/routes.py index 16680c4436..59af748168 100644 --- 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. -"""Routes for parent Flask app.""" +"""Routes for parent Flask app. +""" + 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.""" + """Landing page. + """ 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 )