初步开发完成
This commit is contained in:
+1
-2
@@ -77,8 +77,7 @@ async def validation_exception_handler(request: Request, exc: RequestValidationE
|
||||
|
||||
@app.on_event("startup")
|
||||
async def startup_event():
|
||||
# await init_db() # 注释掉,MySQL需要配置后再启用
|
||||
pass
|
||||
await init_db() # 启用数据库初始化
|
||||
|
||||
|
||||
@app.get("/")
|
||||
|
||||
Reference in New Issue
Block a user