Remove API key From Console

master
Sebastian Serfling 2023-11-01 08:59:20 +01:00
parent 719a9b34cb
commit d8e466451c
1 changed files with 5 additions and 0 deletions

View File

@ -295,6 +295,11 @@ async def get_addreport_group(get: CL.CL_ADD_REPORT_GROUP,api_key: APIKey = Depe
print(database(get.query,get.dbname,""))
return f"Create {get.query} - {get.dbname}"
@app.post("/report/errolog")
async def get_errorlog(get: CL.CL_ADD_REPORT_GROUP,api_key: APIKey = Depends(auth.get_api_key)):
print(database(f"INSERT INTO {get.dname}.ERROR_LOG (datum,hostname,samaccouuntname,fehlercode) VALUES ({get.datum},{get.hostname},{get.user},{get.errocode})","",""))
return f"ADD {get.errocode} - {get.hostname}"
@app.post("/ad/addgroup")
async def add_ad_user(get: CL.CL_ADD_AD_GROUP,api_key: APIKey = Depends(auth.get_api_key)):
print(database(get.query,get.dbname,get.entry))