mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-28 17:54:15 +01:00
18 lines
372 B
Python
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")
|
|
|
|
|