mirror of
https://github.com/getAlby/lndhub.go.git
synced 2025-12-23 07:35:04 +01:00
23 lines
437 B
Go
23 lines
437 B
Go
package controllers
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/bumi/lndhub.go/lib"
|
|
"github.com/labstack/echo/v4"
|
|
)
|
|
|
|
// BalanceController : BalanceController struct
|
|
type BalanceController struct{}
|
|
|
|
// Balance : Balance Controller
|
|
func (BalanceController) Balance(c echo.Context) error {
|
|
ctx := c.(*lib.LndhubContext)
|
|
c.Logger().Warn(ctx.User.ID)
|
|
return c.JSON(http.StatusOK, echo.Map{
|
|
"BTC": echo.Map{
|
|
"AvailableBalance": 1,
|
|
},
|
|
})
|
|
}
|