mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-27 20:38:41 +08:00
20 lines
336 B
Go
20 lines
336 B
Go
|
// DO NOT EDIT, generated by goctl
|
||
|
package handler
|
||
|
|
||
|
import (
|
||
|
"net/http"
|
||
|
|
||
|
"zero/example/graceful/etcd/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),
|
||
|
},
|
||
|
})
|
||
|
}
|