Skip to content

Commit

Permalink
chore: consistent naming of custom node command entities
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmitr committed Jan 24, 2025
1 parent 30dc947 commit cd209ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions http/http_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ func (httpSvc *HttpService) RegisterSharedRoutes(e *echo.Echo) {
restrictedGroup.POST("/api/send-spontaneous-payment-probes", httpSvc.sendSpontaneousPaymentProbesHandler)
restrictedGroup.GET("/api/log/:type", httpSvc.getLogOutputHandler)
restrictedGroup.GET("/api/health", httpSvc.healthHandler)
restrictedGroup.GET("/api/commands", httpSvc.getNodeCommandsHandler)
restrictedGroup.POST("/api/command", httpSvc.execCommandHandler)
restrictedGroup.GET("/api/commands", httpSvc.getCustomNodeCommandsHandler)
restrictedGroup.POST("/api/command", httpSvc.execCustomNodeCommandHandler)

httpSvc.albyHttpSvc.RegisterSharedRoutes(restrictedGroup, e)
}
Expand Down Expand Up @@ -1001,7 +1001,7 @@ func (httpSvc *HttpService) getLogOutputHandler(c echo.Context) error {
return c.JSON(http.StatusOK, getLogResponse)
}

func (httpSvc *HttpService) getNodeCommandsHandler(c echo.Context) error {
func (httpSvc *HttpService) getCustomNodeCommandsHandler(c echo.Context) error {
nodeCommandsResponse, err := httpSvc.api.GetCustomNodeCommands()
if err != nil {
return c.JSON(http.StatusInternalServerError, ErrorResponse{
Expand All @@ -1012,7 +1012,7 @@ func (httpSvc *HttpService) getNodeCommandsHandler(c echo.Context) error {
return c.JSON(http.StatusOK, nodeCommandsResponse)
}

func (httpSvc *HttpService) execCommandHandler(c echo.Context) error {
func (httpSvc *HttpService) execCustomNodeCommandHandler(c echo.Context) error {
var execCommandRequest api.ExecuteCustomNodeCommandRequest
if err := c.Bind(&execCommandRequest); err != nil {
return c.JSON(http.StatusBadRequest, ErrorResponse{
Expand Down

0 comments on commit cd209ad

Please sign in to comment.