release: v0.1.3
This commit is contained in:
@@ -8,12 +8,13 @@ import (
|
||||
)
|
||||
|
||||
func Version(ctx *gin.Context) {
|
||||
ctx.JSON(200, dto.Success(map[string]string{
|
||||
"Mode": conf.Mode,
|
||||
"Version": conf.Version,
|
||||
"BuildAt": conf.BuildAt,
|
||||
"GitAuthor": conf.GitAuthor,
|
||||
"GitEmail": conf.GitEmail,
|
||||
"GitCommit": conf.GitCommit,
|
||||
ctx.JSON(200, dto.Success(map[string]any{
|
||||
"Mode": conf.Mode,
|
||||
"Version": conf.Version,
|
||||
"BuildAt": conf.BuildAt,
|
||||
"GitAuthor": conf.GitAuthor,
|
||||
"GitEmail": conf.GitEmail,
|
||||
"GitCommit": conf.GitCommit,
|
||||
"DebugEnabled": conf.IsRuntimeDebugEnabled(),
|
||||
}))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user