feat: integrated swagger
This commit is contained in:
@@ -2,14 +2,17 @@ package routes
|
||||
|
||||
import (
|
||||
"easywish/internal/controllers"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func SetupRoutes(r *gin.Engine) *gin.Engine {
|
||||
// Healthcheck routes
|
||||
serviceGroup := r.Group("/service")
|
||||
apiGroup := r.Group("/api")
|
||||
{
|
||||
serviceGroup.GET("/health", controllers.HealthCheck)
|
||||
serviceGroup := apiGroup.Group("/service")
|
||||
{
|
||||
serviceGroup.GET("/health", controllers.HealthCheck)
|
||||
}
|
||||
}
|
||||
|
||||
return r
|
||||
|
||||
Reference in New Issue
Block a user