mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-25 02:08:44 +08:00
46995a4d7d
* rename file and function name * update comments of "code generate"
20 lines
387 B
Go
20 lines
387 B
Go
// Code generated by goctl. DO NOT EDIT.
|
|
package handler
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/tal-tech/go-zero/example/graceful/dns/api/svc"
|
|
"github.com/tal-tech/go-zero/rest"
|
|
)
|
|
|
|
func RegisterHandlers(engine *rest.Server, ctx *svc.ServiceContext) {
|
|
engine.AddRoutes([]rest.Route{
|
|
{
|
|
Method: http.MethodGet,
|
|
Path: "/api/graceful",
|
|
Handler: gracefulHandler(ctx),
|
|
},
|
|
})
|
|
}
|