# 增
@app.post('/api/users')
async def get_user(user: UserCreate, db: Session = Depends(get_db)):
user = create_user(db = db, user = user)
from fastapi.encoders import jsonable_encoder
return reponse(data=jsonable_encoder(user, exclude=['hashed_password']))