ariansyahdedy commited on
Commit
b9dc9fe
·
1 Parent(s): b06b4e5

Add MongoDb

Browse files
Files changed (1) hide show
  1. app/main.py +1 -1
app/main.py CHANGED
@@ -52,7 +52,7 @@ async def lifespan(app: FastAPI):
52
  except Exception as e:
53
  logger.error(e)
54
 
55
- app = FastAPI()
56
  app.add_middleware(
57
  CORSMiddleware,
58
  allow_origins=["*"],
 
52
  except Exception as e:
53
  logger.error(e)
54
 
55
+ app = FastAPI(lifespan=lifespan)
56
  app.add_middleware(
57
  CORSMiddleware,
58
  allow_origins=["*"],