add build-repo

This commit is contained in:
yedf2 2021-08-05 15:54:23 +08:00
parent b1c3894eef
commit a17ad4a242
2 changed files with 2 additions and 1 deletions

2
aux/build-repo.sh Executable file
View File

@ -0,0 +1,2 @@
sh -x
docker build -f aux/Dockerfile-release -t yedf/dtm:lastest .

View File

@ -12,7 +12,6 @@ import (
) )
func addRoute(engine *gin.Engine) { func addRoute(engine *gin.Engine) {
engine.GET("/api/ping", common.WrapHandler(func(c *gin.Context) (interface{}, error) { return "OK", nil }))
engine.POST("/api/dtmsvr/prepare", common.WrapHandler(prepare)) engine.POST("/api/dtmsvr/prepare", common.WrapHandler(prepare))
engine.POST("/api/dtmsvr/submit", common.WrapHandler(submit)) engine.POST("/api/dtmsvr/submit", common.WrapHandler(submit))
engine.POST("/api/dtmsvr/registerXaBranch", common.WrapHandler(registerXaBranch)) engine.POST("/api/dtmsvr/registerXaBranch", common.WrapHandler(registerXaBranch))