Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
WSL0809 committed Jun 2, 2024
1 parent 89ca2c0 commit 5abb22b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
room_router)
from fastapi.middleware.cors import CORSMiddleware


model.Base.metadata.create_all(bind=engine)
SHOW_DOCS = os.getenv("SHOW_DOCS", "false").lower() == "true"
app = FastAPI(docs_url="/docs" if SHOW_DOCS else None)
app.include_router(change_room_router)
Expand Down

0 comments on commit 5abb22b

Please sign in to comment.