mirror of
https://github.com/getAlby/lndhub.go.git
synced 2026-01-05 05:55:40 +01:00
* 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
20 lines
343 B
Go
20 lines
343 B
Go
package controllers
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/labstack/echo/v4"
|
|
)
|
|
|
|
// BalanceController : BalanceController struct
|
|
type BalanceController struct{}
|
|
|
|
// Balance : Balance Controller
|
|
func (BalanceController) Balance(c echo.Context) error {
|
|
return c.JSON(http.StatusOK, echo.Map{
|
|
"BTC": echo.Map{
|
|
"AvailableBalance": 1,
|
|
},
|
|
})
|
|
}
|