Skip to content

Commit

Permalink
remove deprecated app.add_middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
ahdamin committed Oct 2, 2024
1 parent c87fc99 commit fd14a5b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions genotype_api/api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ async def lifespan(app: FastAPI):

app = FastAPI(
lifespan=lifespan,
root_path=security_settings.api_root_path,
root_path_in_servers=True,
openapi_prefix=security_settings.api_root_path,
root_path=security_settings.api_root_path
)
app.add_middleware(
CORSMiddleware,
Expand Down

0 comments on commit fd14a5b

Please sign in to comment.