Remove API key From Console

master
Sebastian Serfling 2023-10-18 10:36:45 +02:00
parent f21ea6ca0d
commit d6168c53f0
1 changed files with 1 additions and 1 deletions

View File

@ -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","")[0][0] return database(f"SELECT name FROM `Kunden-Server` where `IP-Adresse` = '{get.ip}'","Stines-GmbH","")
@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)):