routes.go 388 B

12345678910111213141516171819
  1. // Code generated by goctl. DO NOT EDIT.
  2. package handler
  3. import (
  4. "net/http"
  5. "github.com/tal-tech/go-zero/example/graceful/etcd/api/svc"
  6. "github.com/tal-tech/go-zero/rest"
  7. )
  8. func RegisterHandlers(engine *rest.Server, ctx *svc.ServiceContext) {
  9. engine.AddRoutes([]rest.Route{
  10. {
  11. Method: http.MethodGet,
  12. Path: "/api/graceful",
  13. Handler: gracefulHandler(ctx),
  14. },
  15. })
  16. }