obscreen/plugins/user/Dashboard/controller/DashboardController.py
2024-07-30 18:20:12 +02:00

16 lines
453 B
Python

from flask import Flask, render_template
from src.interface.ObController import ObController
class DashboardController(ObController):
def register(self):
self._app.add_url_rule('/dashboard', 'dashboard', self._auth(self.dashboard), methods=['GET'])
def dashboard(self):
return self.render_view(
'@dashboard.jinja.html',
count_players=len(self._model_store.node_player().get_node_players())
)