Code clean up

This commit is contained in:
2022-04-10 16:40:56 +03:00
parent e536574e84
commit 138e0ffa2f
20 changed files with 12 additions and 525 deletions

View File

@@ -1,4 +1,5 @@
from fastapi import FastAPI
from fastapi.responses import ORJSONResponse
import aioredis
from fastapi_pagination import add_pagination
@@ -10,7 +11,7 @@ from core.db import database
def start_app() -> FastAPI:
app = FastAPI()
app = FastAPI(default_response_class=ORJSONResponse)
app.state.database = database