mirror of
https://github.com/flibusta-apps/telegram_files_cache_server.git
synced 2025-12-06 14:45:36 +01:00
Set ORJSONResponse as default
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from fastapi import FastAPI
|
||||
from fastapi.responses import ORJSONResponse
|
||||
|
||||
from prometheus_fastapi_instrumentator import Instrumentator
|
||||
|
||||
@@ -8,7 +9,7 @@ from core.db import database
|
||||
|
||||
|
||||
def start_app() -> FastAPI:
|
||||
app = FastAPI()
|
||||
app = FastAPI(default_response_class=ORJSONResponse)
|
||||
|
||||
app.state.database = database
|
||||
|
||||
|
||||
Reference in New Issue
Block a user