platypush/platypush/backend/http/app/routes/index.py

23 lines
501 B
Python
Raw Normal View History

2020-11-30 20:57:00 +01:00
from flask import Blueprint, render_template
2020-11-30 20:57:00 +01:00
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,
]
2019-05-15 09:31:04 +02:00
@index.route('/')
@authenticate()
def index():
""" Route to the main web panel """
2020-11-30 20:57:00 +01:00
return render_template('index.html', utils=HttpUtils)
# vim:sw=4:ts=4:et: