replace python django backend with nodejs backend
This commit is contained in:
11
backend_old/ai/injector.py
Normal file
11
backend_old/ai/injector.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from injector import Binder, Module, singleton
|
||||
|
||||
from .services.AiService import AiService
|
||||
from .websocket import DashboardConnectionManager
|
||||
|
||||
|
||||
class InjectorModule(Module):
|
||||
def configure(self, binder: Binder) -> None:
|
||||
self.__class__.instance = self
|
||||
binder.bind(AiService, scope=singleton)
|
||||
binder.bind(DashboardConnectionManager, scope=singleton)
|
||||
Reference in New Issue
Block a user