init
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user