initial import
This commit is contained in:
19
example/graceful/dns/api/handler/routes.go
Normal file
19
example/graceful/dns/api/handler/routes.go
Normal file
@@ -0,0 +1,19 @@
|
||||
// DO NOT EDIT, generated by goctl
|
||||
package handler
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"zero/example/graceful/dns/api/svc"
|
||||
"zero/ngin"
|
||||
)
|
||||
|
||||
func RegisterHandlers(engine *ngin.Engine, ctx *svc.ServiceContext) {
|
||||
engine.AddRoutes([]ngin.Route{
|
||||
{
|
||||
Method: http.MethodGet,
|
||||
Path: "/api/graceful",
|
||||
Handler: gracefulHandler(ctx),
|
||||
},
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user