package rest import ( "skeleton/modules/example" "github.com/gin-gonic/gin" ) func init() { RegisterPublic(registerExampleRoutes) } func registerExampleRoutes(r *gin.RouterGroup) { ctrl := example.NewExampleController() group := r.Group("/example") group.GET("/hello", ctrl.Hello) }