This commit is contained in:
1 parent
f34bb39d31
commit
92b701fd59
2 files changed
+5
-1
No files matched your search
@@ -14,8 +14,9 @@ async def lifespan(app: FastAPI):
|
||||
app.state.mqtt_manager = MQTTManager.setup_and_start()
|
||||
yield
|
||||
|
||||
docs_url = "docs" if settings.web.show_docs else None
|
||||
|
||||
app = FastAPI(lifespan=lifespan)
|
||||
app = FastAPI(lifespan=lifespan, docs_url=docs_url)
|
||||
|
||||
app.add_middleware(
|
||||
AuthenticationMiddleware,
|
||||
|
||||
Reference in new issue
Block a user