ADD VOLUME_MOUNT
This commit is contained in:
@@ -61,3 +61,6 @@ class CL_GET_VOLUME(BaseModel):
|
|||||||
class CL_GET_DATABASE(BaseModel):
|
class CL_GET_DATABASE(BaseModel):
|
||||||
ip: str
|
ip: str
|
||||||
|
|
||||||
|
class CL_GET_VOLUMES(BaseModel):
|
||||||
|
name: str
|
||||||
|
database: str
|
||||||
|
|||||||
@@ -71,6 +71,10 @@ async def database_get(get: CL.CL_Database_get,api_key: APIKey = Depends(auth.ge
|
|||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
@app.post("/info/getvolume")
|
||||||
|
async def getvolume(get: CL.CL_GET_VOLUMES,api_key: APIKey = Depends(auth.get_api_key)):
|
||||||
|
return database(f"SELECT * FROM `Clients` where `Name` = '{get.name}'",f"{get.database}","")
|
||||||
|
|
||||||
@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","")[0][0]
|
||||||
|
|||||||
Reference in New Issue
Block a user