bugfix: job callback for mon use method: post

This commit is contained in:
UlricQin 2020-10-12 11:53:08 +08:00
parent 0baa06cee0
commit b867c985ed
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# release version # release version
version=3.1.0 version=3.1.1
CWD=$(cd $(dirname $0)/; pwd) CWD=$(cd $(dirname $0)/; pwd)
cd $CWD cd $CWD

View File

@ -6,7 +6,7 @@ func Config(r *gin.Engine) {
notLogin := r.Group("/api/job-ce") notLogin := r.Group("/api/job-ce")
{ {
notLogin.GET("/ping", ping) notLogin.GET("/ping", ping)
notLogin.GET("/callback", taskCallback) notLogin.POST("/callback", taskCallback)
notLogin.GET("/task/:id/stdout", taskStdout) notLogin.GET("/task/:id/stdout", taskStdout)
notLogin.GET("/task/:id/stderr", taskStderr) notLogin.GET("/task/:id/stderr", taskStderr)
notLogin.GET("/task/:id/state", apiTaskState) notLogin.GET("/task/:id/state", apiTaskState)