goctl added
This commit is contained in:
17
tools/goctl/api/demo/handler/handlers.go
Normal file
17
tools/goctl/api/demo/handler/handlers.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package handler
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"zero/ngin"
|
||||
)
|
||||
|
||||
func RegisterHandlers(engine *ngin.Engine) {
|
||||
engine.AddRoutes([]ngin.Route{
|
||||
{
|
||||
Method: http.MethodGet,
|
||||
Path: "/",
|
||||
Handler: GreetHandler,
|
||||
},
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user