mirror of
https://github.com/flibusta-apps/users_settings_server.git
synced 2025-12-06 14:45:38 +01:00
Set ORJSONResponse as default response class
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
from fastapi import FastAPI
|
from fastapi import FastAPI
|
||||||
|
from fastapi.responses import ORJSONResponse
|
||||||
|
|
||||||
import aioredis
|
import aioredis
|
||||||
from fastapi_pagination import add_pagination
|
from fastapi_pagination import add_pagination
|
||||||
@@ -10,7 +11,7 @@ from core.db import database
|
|||||||
|
|
||||||
|
|
||||||
def start_app() -> FastAPI:
|
def start_app() -> FastAPI:
|
||||||
app = FastAPI()
|
app = FastAPI(default_response_class=ORJSONResponse)
|
||||||
|
|
||||||
app.include_router(users_router)
|
app.include_router(users_router)
|
||||||
app.include_router(languages_router)
|
app.include_router(languages_router)
|
||||||
|
|||||||
Reference in New Issue
Block a user