chore: proj struct and swagger docs for backend
ci-agent / build (push) Failing after 28s

This commit is contained in:
d3m0k1d
2026-04-03 21:04:49 +03:00
parent 8913353e64
commit 3293915062
9 changed files with 105 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
package cmd
import (
"gitea.d3m0k1d.ru/d3m0k1d/HellreigN/backend/docs"
"github.com/gin-gonic/gin"
swaggerFiles "github.com/swaggo/files"
ginSwagger "github.com/swaggo/gin-swagger"
)
// @securityDefinitions.apikey Bearer
// @in header
// @name Authorization
// @description Type "Bearer" followed by a space and the JWT token.
func main() {
router := gin.Default()
docs.SwaggerInfo.BasePath = "/api/v1"
docs.SwaggerInfo.Title = "HellreigN"
docs.SwaggerInfo.Version = "1.0"
docs.SwaggerInfo.Description = "API for HellreigN"
docs.SwaggerInfo.Schemes = []string{"http"}
router.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))
}