go-zero/example/graceful/dns/api/handler/routes.go

20 lines
387 B
Go
Raw Normal View History

// Code generated by goctl. DO NOT EDIT.
2020-07-26 17:09:05 +08:00
package handler
import (
"net/http"
2020-08-08 16:40:10 +08:00
"github.com/tal-tech/go-zero/example/graceful/dns/api/svc"
"github.com/tal-tech/go-zero/rest"
2020-07-26 17:09:05 +08:00
)
2020-07-31 11:45:16 +08:00
func RegisterHandlers(engine *rest.Server, ctx *svc.ServiceContext) {
2020-07-31 11:14:48 +08:00
engine.AddRoutes([]rest.Route{
2020-07-26 17:09:05 +08:00
{
Method: http.MethodGet,
Path: "/api/graceful",
Handler: gracefulHandler(ctx),
},
})
}