Remove API key From Console
This commit is contained in:
@@ -149,7 +149,7 @@ async def add_report_user(get: CL.CL_ADD_REPORT_USER,api_key: APIKey = Depends(a
|
|||||||
print(database(get.query,get.dbname,""))
|
print(database(get.query,get.dbname,""))
|
||||||
return f"Create {get.query} - {get.dbname}"
|
return f"Create {get.query} - {get.dbname}"
|
||||||
|
|
||||||
@app.post("/ad/reportgroup")
|
@app.post("/report/getgroup")
|
||||||
async def get_report_group(get: CL.CL_GET_AD_GROUP,api_key: APIKey = Depends(auth.get_api_key)):
|
async def get_report_group(get: CL.CL_GET_AD_GROUP,api_key: APIKey = Depends(auth.get_api_key)):
|
||||||
result = database(f"SELECT ID, Name FROM `{get.dbname}`.`Gruppen`","","")
|
result = database(f"SELECT ID, Name FROM `{get.dbname}`.`Gruppen`","","")
|
||||||
if not result:
|
if not result:
|
||||||
@@ -157,7 +157,7 @@ async def get_report_group(get: CL.CL_GET_AD_GROUP,api_key: APIKey = Depends(aut
|
|||||||
else:
|
else:
|
||||||
return result[0][0]
|
return result[0][0]
|
||||||
|
|
||||||
@app.post("/ad/addreportgroup")
|
@app.post("/report/addgroup")
|
||||||
async def get_addreport_group(get: CL.CL_ADD_REPORT_GROUP,api_key: APIKey = Depends(auth.get_api_key)):
|
async def get_addreport_group(get: CL.CL_ADD_REPORT_GROUP,api_key: APIKey = Depends(auth.get_api_key)):
|
||||||
print(database(get.query,get.dbname,""))
|
print(database(get.query,get.dbname,""))
|
||||||
return f"Create {get.query} - {get.dbname}"
|
return f"Create {get.query} - {get.dbname}"
|
||||||
|
|||||||
Reference in New Issue
Block a user