mirror of
https://github.com/cirruslabs/orchard.git
synced 2026-10-17 20:25:50 +02:00
Introduce "orchard {port-forward, vnc} worker WORKER_NAME" (#140)
* Fix potential NPE in Client.wsRequest()
* Introduce "orchard {port-forward, vnc} worker WORKER_NAME"
* portspec.go: simplify logic and respect [LOCAL_PORT]:REMOTE_PORT format
This commit is contained in:
@@ -98,6 +98,9 @@ func (controller *Controller) initAPI() *gin.Engine {
|
||||
v1.GET("/workers", func(c *gin.Context) {
|
||||
controller.listWorkers(c).Respond(c)
|
||||
})
|
||||
v1.GET("/workers/:name/port-forward", func(c *gin.Context) {
|
||||
controller.portForwardWorker(c).Respond(c)
|
||||
})
|
||||
v1.DELETE("/workers/:name", func(c *gin.Context) {
|
||||
controller.deleteWorker(c).Respond(c)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user