We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6419b01 commit e427084Copy full SHA for e427084
src/mavedb/server_main.py
@@ -7,6 +7,7 @@
7
from fastapi.encoders import jsonable_encoder
8
from fastapi.exceptions import RequestValidationError
9
from fastapi.middleware.cors import CORSMiddleware
10
+from fastapi.middleware.gzip import GZipMiddleware
11
from fastapi.openapi.utils import get_openapi
12
from sqlalchemy.orm import configure_mappers
13
from starlette import status
@@ -82,6 +83,7 @@
82
83
allow_methods=["*"],
84
allow_headers=["*"],
85
)
86
+app.add_middleware(GZipMiddleware, minimum_size=1000, compresslevel=5)
87
app.include_router(access_keys.router)
88
app.include_router(api_information.router)
89
app.include_router(collections.router)
0 commit comments