写好了增加学生接口,增加学生dao层,main里加入了student——router
This commit is contained in:
@@ -2,13 +2,14 @@ from fastapi import FastAPI
|
||||
from api.example import example_router
|
||||
from middleware import log_middleware
|
||||
import uvicorn
|
||||
from api.student import student_router
|
||||
app = FastAPI()
|
||||
app.middleware("http")(log_middleware)
|
||||
|
||||
#-------------朱婷婷--------------
|
||||
|
||||
#-------------李玉杰--------------
|
||||
|
||||
app.include_router(student_router)
|
||||
#-------------张义---------------
|
||||
|
||||
#-------------薄鑫---------------
|
||||
|
||||
Reference in New Issue
Block a user