chore: refactor

This commit is contained in:
im-adithya
2023-12-07 14:29:18 +05:30
parent e681e69fa2
commit d3208f2bb1
25 changed files with 41 additions and 77 deletions

View File

@@ -16,7 +16,6 @@ import (
"github.com/getAlby/lndhub.go/lib/responses"
"github.com/getAlby/lndhub.go/lib/service"
"github.com/getAlby/lndhub.go/lib/tokens"
"github.com/getAlby/lndhub.go/lnd"
"github.com/go-playground/validator/v10"
"github.com/labstack/echo/v4"
"github.com/lightningnetwork/lnd/lnrpc"
@@ -65,7 +64,7 @@ func (suite *RabbitMQTestSuite) SetupSuite() {
e.Validator = &lib.CustomValidator{Validator: validator.New()}
suite.echo = e
suite.echo.Use(tokens.Middleware([]byte(suite.svc.Config.JWTSecret), &lnd.Limits{}))
suite.echo.Use(tokens.Middleware([]byte(suite.svc.Config.JWTSecret)))
suite.echo.POST("/addinvoice", controllers.NewAddInvoiceController(suite.svc).AddInvoice)
suite.echo.POST("/payinvoice", controllers.NewPayInvoiceController(suite.svc).PayInvoice)
go func() {