Remove API key From Console
parent
c1254385d0
commit
687acd6ece
2
main.py
2
main.py
|
|
@ -88,7 +88,7 @@ async def getuser(get: CL.CL_GET_USER,api_key: APIKey = Depends(auth.get_api_key
|
|||
|
||||
@app.post("/info/gethost")
|
||||
async def gethostname(get: CL.CL_GET_HOST,api_key: APIKey = Depends(auth.get_api_key)):
|
||||
result = database(f"SELECT hostname FROM `hardware` where `hostname` = '{get.hostname}'",f"{get.dbname}","")
|
||||
result = database(f"SELECT id FROM `hardware` where `hostname` = '{get.hostname}'",f"{get.dbname}","")
|
||||
if not result:
|
||||
return False
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in New Issue