Files
lndhub.go/controllers/gettxs.ctrl.go
2022-01-20 14:02:32 +01:00

27 lines
604 B
Go

package controllers
import (
"net/http"
"github.com/getAlby/lndhub.go/lib/service"
"github.com/labstack/echo/v4"
)
// GetTXSController : GetTXSController struct
type GetTXSController struct{}
func NewGetTXSController(svc *service.LndhubService) *GetTXSController {
return &GetTXSController{}
}
// GetTXS : Get TXS Controller
func (GetTXSController) GetTXS(c echo.Context) error {
transactions := []string{}
return c.JSON(http.StatusOK, &transactions)
}
func (GetTXSController) GetUserInvoices(c echo.Context) error {
transactions := []string{}
return c.JSON(http.StatusOK, &transactions)
}