feat: initialized all controllers for release 1;

feat: authentication added to swagger
This commit is contained in:
2025-06-18 18:27:12 +03:00
parent 582c0f15d8
commit b1ef3e06f6
7 changed files with 434 additions and 7 deletions

View File

@@ -23,7 +23,19 @@ func main() {
r := gin.Default()
r = routes.SetupRoutes(r)
docs.SwaggerInfo.BasePath = "/api/"
// @title Easywish client API
// @version 1.0
// @description Easy and feature-rich wishlist.
// @license.name GPL 3.0
// @BasePath /api/
// @Schemes http
// @securityDefinitions.apikey JWT
// @in header
// @name Authorization
docs.SwaggerInfo.Schemes = []string{"http"}
r.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerfiles.Handler))
r.Run(":8080")