go-zero/example/graceful/etcd/api/handler/routes.go
2020-07-31 11:45:16 +08:00

20 lines
336 B
Go

// DO NOT EDIT, generated by goctl
package handler
import (
"net/http"
"zero/example/graceful/etcd/api/svc"
"zero/rest"
)
func RegisterHandlers(engine *rest.Server, ctx *svc.ServiceContext) {
engine.AddRoutes([]rest.Route{
{
Method: http.MethodGet,
Path: "/api/graceful",
Handler: gracefulHandler(ctx),
},
})
}