Remove API key From Console
parent
d32cafbb90
commit
3a7e77840c
2
main.py
2
main.py
|
|
@ -96,7 +96,7 @@ async def gethost(get: CL.CL_GET_HOST,api_key: APIKey = Depends(auth.get_api_key
|
||||||
|
|
||||||
@app.post("/host/get/database")
|
@app.post("/host/get/database")
|
||||||
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 Datenbank FROM `Kunden` where `IP-Adresse` = '{get.ip}'","Stines-GmbH","")[0][0]
|
return database(f"SELECT Datenbank FROM `Kunden` where `Subnetz` = '{get.ip}'","Stines-GmbH","")[0][0]
|
||||||
|
|
||||||
@app.post("/host/set")
|
@app.post("/host/set")
|
||||||
async def sethost(get: CL.CL_SET_HOST,api_key: APIKey = Depends(auth.get_api_key)):
|
async def sethost(get: CL.CL_SET_HOST,api_key: APIKey = Depends(auth.get_api_key)):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue