from fastapi import FastAPI from fastapi.responses import ORJSONResponse from common.exception import exception_handlers from common.middleware import middlewares app = FastAPI( middleware=middlewares, exception_handlers=exception_handlers, default_response_class=ORJSONResponse ) if __name__ == '__main__': import uvicorn uvicorn.run("main:app", reload=True)