Remove API key From Console
parent
d6168c53f0
commit
b9761d5bc5
2
main.py
2
main.py
|
|
@ -192,7 +192,7 @@ async def addclient(addclient: CL.CL_ADD_CLIENT,api_key: APIKey = Depends(auth.g
|
||||||
|
|
||||||
@app.post("/info/getdatabase")
|
@app.post("/info/getdatabase")
|
||||||
async def getdatabase(get: CL.CL_GET_DATABASE,api_key: APIKey = Depends(auth.get_api_key)):
|
async def getdatabase(get: CL.CL_GET_DATABASE,api_key: APIKey = Depends(auth.get_api_key)):
|
||||||
return database(f"SELECT name FROM `Kunden-Server` where `IP-Adresse` = '{get.ip}'","Stines-GmbH","")
|
return database(f"SELECT name FROM `Kunden-Server` where `IP-Adresse` = '{get.ip}'","Stines-GmbH","")[0][0]
|
||||||
|
|
||||||
@app.post("/dbset")
|
@app.post("/dbset")
|
||||||
async def dbset(get: CL.CL_Database_set,api_key: APIKey = Depends(auth.get_api_key)):
|
async def dbset(get: CL.CL_Database_set,api_key: APIKey = Depends(auth.get_api_key)):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue