add subuser finding api
This commit is contained in:
parent
e58d95a9d7
commit
724240d304
Binary file not shown.
5
main.py
5
main.py
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in New Issue