feat: use GetVersion()

This commit is contained in:
Kharec committed 2026-01-26 22:17:14 +01:00
1 parent 75f1406edf
commit 65109a787c
3 files changed
+15 -15

No files matched your search

+1 -1
View File
@@ -55,7 +55,7 @@ func run(args []string) error {
docs.SwaggerInfo.Title = fmt.Sprintf("%s API", cfg.App.Title)
docs.SwaggerInfo.Description = "Y Combinator-style news board API."
docs.SwaggerInfo.Version = version.Version
docs.SwaggerInfo.Version = version.GetVersion()
docs.SwaggerInfo.BasePath = "/api"
docs.SwaggerInfo.Host = fmt.Sprintf("%s:%s", cfg.Server.Host, cfg.Server.Port)
docs.SwaggerInfo.Schemes = []string{"http"}