platypush/platypush/backend/http/app/routes/index.py
2020-11-30 20:57:00 +01:00

22 lines
501 B
Python

from flask import Blueprint, render_template
from platypush.backend.http.app import template_folder
from platypush.backend.http.app.utils import authenticate
from platypush.backend.http.utils import HttpUtils
index = Blueprint('index', __name__, template_folder=template_folder)
# Declare routes list
__routes__ = [
index,
]
@index.route('/')
@authenticate()
def index():
""" Route to the main web panel """
return render_template('index.html', utils=HttpUtils)
# vim:sw=4:ts=4:et: