完成了增加学生接口

This commit is contained in:
wolin_liyujie
2026-09-21 17:53:12 +08:00
parent 4d811348ac
commit 8b0cdbdb10
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ from schemas.student import StudentCreate
from sqlalchemy.orm import Session
student_router = APIRouter()
@student_router.post("/student")
@student_router.post("")
def create_student(request:StudentCreate,db:Session = Depends(get_db)):
d = request.model_dump()
r = create_students(d,db)