Skip to content

Commit

Permalink
Add middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
TLCFEM committed Nov 10, 2024
1 parent ce1e5b3 commit 9fa2999
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mb/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async def lifespan(fastapi_app: FastAPI): # noqa # pylint: disable=unused-argum
license_info={"name": "GNU General Public License v3.0"},
lifespan=lifespan,
middleware=[
Middleware(GZipMiddleware, minimum_size=1024),
Middleware(GZipMiddleware, minimum_size=1024, compresslevel=6),
Middleware(
CORSMiddleware, allow_origins=["*"], allow_methods=["GET", "POST", "DELETE"]
),
Expand Down

0 comments on commit 9fa2999

Please sign in to comment.