Add device-bound robot notifications and automatic OAuth cards
This commit is contained in:
@@ -144,6 +144,7 @@ def create_app(settings=None, redis=None, platform=None):
|
||||
broker = Broker(s, r, store)
|
||||
oauth = OAuth(s, r, f)
|
||||
oauth.store = store
|
||||
from .notifications import router as notification_router
|
||||
background = set()
|
||||
|
||||
def spawn(coro):
|
||||
@@ -185,6 +186,7 @@ def create_app(settings=None, redis=None, platform=None):
|
||||
app = FastAPI(title="Hainuo B1 connector", lifespan=lifespan, docs_url=None, redoc_url=None)
|
||||
app.add_middleware(BodyLimitMiddleware, max_body=s.max_body)
|
||||
app.include_router(oauth.router)
|
||||
app.include_router(notification_router(s, r, store, f, oauth))
|
||||
from .web_session import WebSessions
|
||||
web_sessions = WebSessions(s, r, store, broker, f)
|
||||
app.include_router(web_sessions.router)
|
||||
|
||||
Reference in New Issue
Block a user