routes.go 469 B

123456789101112131415161718192021222324252627
  1. // Code generated by goctl. DO NOT EDIT.
  2. package handler
  3. import (
  4. "net/http"
  5. "bookstore/api/internal/svc"
  6. "github.com/tal-tech/go-zero/rest"
  7. )
  8. func RegisterHandlers(engine *rest.Server, serverCtx *svc.ServiceContext) {
  9. engine.AddRoutes(
  10. []rest.Route{
  11. {
  12. Method: http.MethodGet,
  13. Path: "/add",
  14. Handler: AddHandler(serverCtx),
  15. },
  16. {
  17. Method: http.MethodGet,
  18. Path: "/check",
  19. Handler: CheckHandler(serverCtx),
  20. },
  21. },
  22. )
  23. }