Skip to content
__init__.py 564 B
Newer Older
#!/usr/bin/python
# -*- coding: UTF-8 -*-

from flask import Blueprint
from flask import current_app

from utils.decorator import admin_required
from utils.template import my_render_template

pianos_view = Blueprint( "pianos", __name__, template_folder = "templates" )

@pianos_view.route( "/pianos_api" )
@admin_required
def pianos_actions():
    """
        Serve the page with all actions related to the dedicated PiAnoS server.
    """
    current_app.logger.info( "Serve the PiAnoS actions page" )
    
    return my_render_template( "PiAnoS/actions.html" )