mirror of
https://github.com/getAlby/lndhub.go.git
synced 2025-12-19 21:54:59 +01:00
25 lines
549 B
Go
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,
|
|
})
|
|
}
|