routes.go 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. // Code generated by goctl. DO NOT EDIT.
  2. package handler
  3. import (
  4. "net/http"
  5. "dag-jupyter/internal/svc"
  6. "github.com/zeromicro/go-zero/rest"
  7. )
  8. func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
  9. server.AddRoutes(
  10. []rest.Route{
  11. {
  12. Method: http.MethodGet,
  13. Path: "/helm/ping",
  14. Handler: GreetHandler(serverCtx),
  15. },
  16. },
  17. )
  18. server.AddRoutes(
  19. []rest.Route{
  20. {
  21. Method: http.MethodGet,
  22. Path: "/helm/password",
  23. Handler: PasswordHandler(serverCtx),
  24. },
  25. },
  26. )
  27. server.AddRoutes(
  28. []rest.Route{
  29. {
  30. Method: http.MethodPost,
  31. Path: "/helm/ops/start",
  32. Handler: StartOpHandler(serverCtx),
  33. },
  34. {
  35. Method: http.MethodPost,
  36. Path: "/helm/ops/stop",
  37. Handler: StopOpHandler(serverCtx),
  38. },
  39. {
  40. Method: http.MethodPost,
  41. Path: "/helm/ops/upgrade",
  42. Handler: UpgradeOpHandler(serverCtx),
  43. },
  44. {
  45. Method: http.MethodPost,
  46. Path: "/helm/ops/status",
  47. Handler: StatusOpHandler(serverCtx),
  48. },
  49. },
  50. )
  51. }