1
0
Fork 0
platypush/platypush/plugins/config.py
2020-11-21 01:12:08 +01:00

19 lines
381 B
Python

from platypush import Config
from platypush.plugins import Plugin, action
class ConfigPlugin(Plugin):
@action
def get(self) -> dict:
return Config.get()
@action
def dashboards(self) -> dict:
return Config.get_dashboards()
@action
def get_dashboard(self, name: str) -> str:
return Config.get_dashboard(name)
# vim:sw=4:ts=4:et: