Spaces:
Runtime error
Runtime error
Commit
·
b9dc9fe
1
Parent(s):
b06b4e5
Add MongoDb
Browse files- 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=["*"],
|