add subuser finding api

This commit is contained in:
ehsan gheychisaz 2023-10-07 20:00:03 +03:30
parent e58d95a9d7
commit 724240d304
2 changed files with 0 additions and 5 deletions

View File

@ -16,11 +16,6 @@ def ping():
return {"message": "pong", "production": conf.IS_PROD}
@app.get("/subUser" + "/{_id}/")
async def hi(_id:int):
db = next(get_db())
row = db.query(AccountLawyeruser).filter(AccountLawyeruser.main_id == _id).all()
return {"users": row}
@app.get('/create')
def create_user():
db = next(get_db())