mirror of
https://github.com/Av0idD4rk/firegex.git
synced 2026-10-23 16:31:00 +00:00
Change port start developping
This commit is contained in:
parent
36ad3adbfe
commit
1904f3ef2f
@ -197,7 +197,7 @@ class ChangePortForm(BaseModel):
|
||||
internalPort: Union[int, None]
|
||||
|
||||
@app.post('/api/service/{service_id}/change-ports')
|
||||
async def get_regen_port(service_id: str, change_port:ChangePortForm, auth: bool = Depends(is_loggined)):
|
||||
async def change_port(service_id: str, change_port:ChangePortForm, auth: bool = Depends(is_loggined)):
|
||||
if change_port.port is None and change_port.internalPort is None:
|
||||
return {'status': 'Invalid Request!'}
|
||||
try:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user