From a17ad4a2420e3f83fb84cfdf408255276b8c68e5 Mon Sep 17 00:00:00 2001 From: yedf2 <120050102@qq.com> Date: Thu, 5 Aug 2021 15:54:23 +0800 Subject: [PATCH] add build-repo --- aux/build-repo.sh | 2 ++ dtmsvr/api.go | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100755 aux/build-repo.sh diff --git a/aux/build-repo.sh b/aux/build-repo.sh new file mode 100755 index 0000000..56b5e08 --- /dev/null +++ b/aux/build-repo.sh @@ -0,0 +1,2 @@ +sh -x +docker build -f aux/Dockerfile-release -t yedf/dtm:lastest . \ No newline at end of file diff --git a/dtmsvr/api.go b/dtmsvr/api.go index d49819f..11d06ca 100644 --- a/dtmsvr/api.go +++ b/dtmsvr/api.go @@ -12,7 +12,6 @@ import ( ) 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/submit", common.WrapHandler(submit)) engine.POST("/api/dtmsvr/registerXaBranch", common.WrapHandler(registerXaBranch))