123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- // Code generated by goctl. DO NOT EDIT.
- package handler
- import (
- "net/http"
- "dag-jupyter/internal/svc"
- "github.com/zeromicro/go-zero/rest"
- )
- func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
- server.AddRoutes(
- []rest.Route{
- {
- Method: http.MethodGet,
- Path: "/helm/ping",
- Handler: GreetHandler(serverCtx),
- },
- },
- )
- server.AddRoutes(
- []rest.Route{
- {
- Method: http.MethodGet,
- Path: "/helm/password",
- Handler: PasswordHandler(serverCtx),
- },
- },
- )
- server.AddRoutes(
- []rest.Route{
- {
- Method: http.MethodPost,
- Path: "/helm/ops/start",
- Handler: StartOpHandler(serverCtx),
- },
- {
- Method: http.MethodPost,
- Path: "/helm/ops/stop",
- Handler: StopOpHandler(serverCtx),
- },
- {
- Method: http.MethodPost,
- Path: "/helm/ops/upgrade",
- Handler: UpgradeOpHandler(serverCtx),
- },
- {
- Method: http.MethodPost,
- Path: "/helm/ops/status",
- Handler: StatusOpHandler(serverCtx),
- },
- },
- )
- }
|