summaryrefslogtreecommitdiffstats
path: root/lib/apiv1/apiv1.go
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-07-09 15:43:18 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-08-07 18:55:36 +0200
commitbf2487c4e4c925f437f9e72f09f6ef5099a0c3cb (patch)
treea7d543069aaf1f557baa5c02d0125f7fd61770f4 /lib/apiv1/apiv1.go
parente9b18cd409f82928e1c4de3029ee1cc2d3816552 (diff)
Add stdin support to /exec
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'lib/apiv1/apiv1.go')
-rw-r--r--lib/apiv1/apiv1.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/apiv1/apiv1.go b/lib/apiv1/apiv1.go
index 7fa69e9..cde2526 100644
--- a/lib/apiv1/apiv1.go
+++ b/lib/apiv1/apiv1.go
@@ -52,6 +52,7 @@ func New(r *gin.Engine, sess *session.Sessions, cfg *xdsconfig.Config, mfolder *
s.apiRouter.POST("/exec", s.execCmd)
s.apiRouter.POST("/exec/:id", s.execCmd)
+ s.apiRouter.POST("/signal", s.execSignalCmd)
return s
}