2020-09-21 18:27:35 +08:00
|
|
|
// 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/etcd/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),
|
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|