refactor: controllers and routes

This commit is contained in:
2025-06-17 20:20:03 +03:00
parent 0b03c6ad90
commit 367647a8df
3 changed files with 11 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
package serviceController
package controllers
import (
"net/http"

View File

@@ -1,14 +1,16 @@
package serviceController
package routes
import (
"easywish/internal/controllers"
"github.com/gin-gonic/gin"
)
func SetupRoutes(r *gin.Engine) *gin.Engine {
// Healthcheck routes
serviceGroup := r.Group("/service")
serviceGroup.GET("/health", HealthCheck)
{
serviceGroup.GET("/health", controllers.HealthCheck)
}
return r
}