Change port start developping

This commit is contained in:
DomySh
2022-06-30 17:52:29 +02:00
parent 36ad3adbfe
commit 1904f3ef2f

View File

@@ -197,7 +197,7 @@ class ChangePortForm(BaseModel):
internalPort: Union[int, None] internalPort: Union[int, None]
@app.post('/api/service/{service_id}/change-ports') @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: if change_port.port is None and change_port.internalPort is None:
return {'status': 'Invalid Request!'} return {'status': 'Invalid Request!'}
try: try: