Files
lndhub.go/controllers/checkpayment.ctrl.go
2022-01-19 16:10:55 +01:00

25 lines
549 B
Go

package controllers
import (
"net/http"
"github.com/getAlby/lndhub.go/lib/service"
"github.com/labstack/echo/v4"
)
// CheckPaymentController : CheckPaymentController struct
type CheckPaymentController struct{}
func NewCheckPaymentController(svc *service.LndhubService) *CheckPaymentController {
return &CheckPaymentController{}
}
// CheckPayment : Check Payment Controller
func (CheckPaymentController) CheckPayment(c echo.Context) error {
_ = c.Param("payment_hash")
return c.JSON(http.StatusBadRequest, echo.Map{
"paid": true,
})
}