Set docs version dynamically.

This commit is contained in:
Era Dorta 2026-04-06 18:15:06 +02:00
parent 7a9b9919ef
commit 3dd0001a32

View File

@ -84,6 +84,7 @@ func main() {
} else {
docs.SwaggerInfo.Schemes = []string{"https", "http"}
}
docs.SwaggerInfo.Version = utils.GetEnv("BUILD_VERSION", "1.0")
router := gin.New()
router.Use(gin.LoggerWithConfig(gin.LoggerConfig{