add deploy
This commit is contained in:
parent
85fc085b95
commit
b1c3894eef
@ -135,7 +135,7 @@ func init() {
|
||||
DtmConfig.DB = map[string]string{
|
||||
"driver": os.Getenv("DB_DRIVER"),
|
||||
"host": os.Getenv("DB_HOST"),
|
||||
"port": os.Getenv("DB_PORT"),
|
||||
"port": dtmcli.OrString(os.Getenv("DB_PORT"), "3306"),
|
||||
"user": os.Getenv("DB_USER"),
|
||||
"password": os.Getenv("DB_PASSWORD"),
|
||||
}
|
||||
|
||||
@ -12,6 +12,7 @@ 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))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user