feat: initialized all controllers for release 1;
feat: authentication added to swagger
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user