2020-11-30 20:57:00 +01:00
|
|
|
from flask import Blueprint, render_template
|
2019-02-23 21:19:00 +01:00
|
|
|
|
2020-11-30 20:57:00 +01:00
|
|
|
from platypush.backend.http.app import template_folder
|
|
|
|
from platypush.backend.http.app.utils import authenticate
|
2019-02-23 21:19:00 +01:00
|
|
|
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
|
|
|
|
2019-02-23 21:19:00 +01:00
|
|
|
@index.route('/')
|
2019-07-15 14:12:00 +02:00
|
|
|
@authenticate()
|
2019-02-23 21:19:00 +01:00
|
|
|
def index():
|
|
|
|
""" Route to the main web panel """
|
2020-11-30 20:57:00 +01:00
|
|
|
return render_template('index.html', utils=HttpUtils)
|
2019-02-23 21:19:00 +01:00
|
|
|
|
|
|
|
|
|
|
|
# vim:sw=4:ts=4:et:
|