Merge pull request #830 from Gara-Dorta/docs-version

Set docs version dynamically.
This commit is contained in:
Bernhard B. 2026-04-06 21:07:44 +02:00 committed by GitHub
commit bc0ea66c04
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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{