craftbeerpi4-pione/core/controller/config_controller.py

19 lines
372 B
Python
Raw Normal View History

2018-11-18 15:40:10 +01:00
from core.controller.crud_controller import CRUDController
from core.database.model import ConfigModel
class ConfigController(CRUDController):
'''
The main actor controller
'''
model = ConfigModel
def __init__(self, cbpi):
super(ConfigController, self).__init__(cbpi)
self.cbpi = cbpi
self.cbpi.register(self, "/config")