Skip to content

Commit

Permalink
Removed swagger customization
Browse files Browse the repository at this point in the history
  • Loading branch information
dmezzogori committed Jul 24, 2023
1 parent 0d699fa commit 6ae1374
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions kwik/applications/kwik.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ def init_fastapi_app(self, *, api_router: APIRouter) -> FastAPI:
debug=settings.DEBUG,
on_startup=[broadcast.connect] if settings.WEBSOCKET_ENABLED else None,
on_shutdown=[broadcast.disconnect] if settings.WEBSOCKET_ENABLED else None,
docs_url=None, # disable default docs,
redirect_slashes=False,
)

Expand All @@ -60,8 +59,6 @@ def init_fastapi_app(self, *, api_router: APIRouter) -> FastAPI:

app.exception_handler(KwikException)(kwik.exceptions.handler.kwik_exception_handler)

app = self.customize_swagger_ui(app=app)

return app

def set_middlewares(self, *, app: FastAPI) -> FastAPI:
Expand Down

0 comments on commit 6ae1374

Please sign in to comment.