package routes import ( "framework_v2/internal/handlers/controllers/user" "framework_v2/internal/middleware/http" "framework_v2/internal/providers" "github.com/gin-gonic/gin" ) // @title Swagger Example API // @version 1.0 // @description This is a sample server celler server. // @termsOfService http://swagger.io/terms/ // @contact.name API Support // @contact.url http://www.swagger.io/support // @contact.email support@swagger.io // @license.name Apache 2.0 // @license.url http://www.apache.org/licenses/LICENSE-2.0.html // @host localhost:8080 // @BasePath /api/v1 // @securityDefinitions.basic BasicAuth // @securityDefinitions.apikey ApiKeyAuth // @in header // @name Authorization // @description Description for what is this security definition being used func InitApiRoutes() { var router = *providers.MustGet[gin.Engine]() router.GET("/", http.MiddlewareJSONResponse, http.RequireJWTIDToken, user.CurrentUser) }