Files
lndhub.go/controllers/checkpayment.ctrl.go
Roman Useinov 628071160c Cleanup (#25)
* remove cmd folder as we are going to have only one entrypoint

* get rid of pkg directory

* rename test -> integration_tests as unit tests should reside next to the actual files they are testing

* database migration WIP

* reinstate gorm boilerplate in the addinvoice for now to make it compile

* introduce migrations

* add Makefile

* don't use unsigned types for database mappings

* migrations work now

* add build target

* use echo groups

* gorm removed

* add envconfig

* fix comments
2022-01-16 00:49:19 +01:00

20 lines
383 B
Go

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