Rename to HandleInvoiceStatus

This commit is contained in:
ekzyis 2023-11-03 23:43:56 +01:00
parent edfbd2cc92
commit 9a87fe7342
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ import (
"github.com/lightningnetwork/lnd/lntypes"
)
func HandleInvoiceAPI(sc context.ServerContext) echo.HandlerFunc {
func HandleInvoiceStatus(sc context.ServerContext) echo.HandlerFunc {
return func(c echo.Context) error {
var (
invoiceId string

View File

@ -46,7 +46,7 @@ func addBackendRoutes(e *echo.Echo, sc ServerContext) {
GET(e, sc, "/api/login", handler.HandleLoginCallback)
GET(e, sc, "/api/session", handler.HandleCheckSession)
GET(e, sc, "/api/invoice/:id",
handler.HandleInvoiceAPI,
handler.HandleInvoiceStatus,
middleware.SessionGuard)
}