|
@@ -23,14 +23,20 @@ func makeHTTPServer(debug bool) *gin.Engine {
|
|
r.GET("/ping", func(c *gin.Context) {
|
|
r.GET("/ping", func(c *gin.Context) {
|
|
c.JSON(http.StatusOK, gin.H{"msg": "pong"})
|
|
c.JSON(http.StatusOK, gin.H{"msg": "pong"})
|
|
})
|
|
})
|
|
- // List jobs, status page
|
|
|
|
|
|
+ // list jobs, status page
|
|
r.GET("/jobs", func(c *gin.Context) {})
|
|
r.GET("/jobs", func(c *gin.Context) {})
|
|
// worker online
|
|
// worker online
|
|
r.POST("/workers/:name", func(c *gin.Context) {})
|
|
r.POST("/workers/:name", func(c *gin.Context) {})
|
|
- // post job list
|
|
|
|
- r.POST("/workers/:name/jobs", func(c *gin.Context) {})
|
|
|
|
|
|
+ // get job list
|
|
|
|
+ r.GET("/workers/:name/jobs", func(c *gin.Context) {})
|
|
// post job status
|
|
// post job status
|
|
r.POST("/workers/:name/jobs/:job", func(c *gin.Context) {})
|
|
r.POST("/workers/:name/jobs/:job", func(c *gin.Context) {})
|
|
|
|
|
|
|
|
+ // worker command polling
|
|
|
|
+ r.GET("/workers/:name/cmd_stream", func(c *gin.Context) {})
|
|
|
|
+
|
|
|
|
+ // for tunasynctl to post commands
|
|
|
|
+ r.POST("/cmd/", func(c *gin.Context) {})
|
|
|
|
+
|
|
return r
|
|
return r
|
|
}
|
|
}
|