POST /api/config/server
Content-Type: application/json
{
"name": "server-name",
"cmd": "command to execute",
"cwd": "directory to execute command in",
"use_direnv": true,
"env": {
"ENV_VAR": "value"
}
}
DELETE /api/config/server/:name
GET /api/config/server
POST /api/runner/:name
DELETE /api/runner/:name
GET /api/state
GET /api/state/:name
GET /api/ws
This will return the state of all servers and will update in real-time.
If the client sends a message in the format of {"name": "server-name"}
,
it will also return the logs of that server along side the overview state
of all the servers.