craftbeerpi4-pione/core/controller/config_controller.py
2018-11-18 15:40:10 +01:00

18 lines
372 B
Python

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")