add initial application structure with configuration, logging, and health check endpoints
This commit is contained in:
17
internal/controller/routes.go
Normal file
17
internal/controller/routes.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package controller
|
||||
|
||||
import (
|
||||
"github.com/labstack/echo/v4"
|
||||
"go.uber.org/fx"
|
||||
)
|
||||
|
||||
type RouteParams struct {
|
||||
fx.In
|
||||
|
||||
Echo *echo.Echo
|
||||
Health *HealthController
|
||||
}
|
||||
|
||||
func RegisterRoutes(p RouteParams) {
|
||||
p.Echo.GET("/health", p.Health.Health)
|
||||
}
|
||||
Reference in New Issue
Block a user