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