comment
This commit is contained in:
parent
89651a8e81
commit
11a84f4926
1 changed files with 2 additions and 0 deletions
|
|
@ -123,6 +123,7 @@ class XUIClient:
|
|||
resp.raise_for_status()
|
||||
if self.version == "legacy":
|
||||
resp = await self.session.post(f"{self.base_url}/panel/inbound/addClient", json=configs.legacy_payload(resp.json()))
|
||||
#New configs here
|
||||
else:
|
||||
raise HTTPException(
|
||||
status_code=500,
|
||||
|
|
@ -133,6 +134,7 @@ class XUIClient:
|
|||
resp.raise_for_status()
|
||||
if self.version == "legacy":
|
||||
return configs.legacy_config(resp.json())
|
||||
#New configs here
|
||||
else:
|
||||
raise HTTPException(
|
||||
status_code=500,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue