Files
lndhub.go/controllers/blank.ctrl.go
Michael Bumann 56a3f79506 Cleanup
2022-01-19 21:42:42 +01:00

32 lines
828 B
Go

package controllers
import (
"net/http"
"github.com/getAlby/lndhub.go/lib/service"
"github.com/labstack/echo/v4"
)
// BlankController : Controller for endpoints that we currrently do not support and simply return
// a blank response for compatibility
// BlankController : BlankController struct
type BlankController struct{}
func NewBlankController(svc *service.LndhubService) *BlankController {
return &BlankController{}
}
// We do NOT currently support onchain transactions thus we only return an empty array for backwards compatibility
func (controller *BlankController) GetBtc(c echo.Context) error {
addresses := []string{}
return c.JSON(http.StatusOK, &addresses)
}
func (controller *BlankController) GetPending(c echo.Context) error {
addresses := []string{}
return c.JSON(http.StatusOK, &addresses)
}