Added rename function

This commit is contained in:
DomySh
2022-07-08 13:13:30 +02:00
parent 646c1844b1
commit 31391f092c
18 changed files with 60 additions and 156 deletions

View File

@@ -114,6 +114,11 @@ export async function startservice(service_port:number){
return status === "ok"?undefined:status
}
export async function renameservice(service_port:number, name: string){
const { status } = await postapi(`service/${service_port}/rename`,{ name }) as ServerResponse;
return status === "ok"?undefined:status
}
export async function stopservice(service_port:number){
const { status } = await getapi(`service/${service_port}/stop`) as ServerResponse;
return status === "ok"?undefined:status