From 9a87fe73420200f2c43b8f804f9ed2b390ccba4b Mon Sep 17 00:00:00 2001 From: ekzyis Date: Fri, 3 Nov 2023 23:43:56 +0100 Subject: [PATCH] Rename to HandleInvoiceStatus --- server/router/handler/invoice.go | 2 +- server/router/router.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/router/handler/invoice.go b/server/router/handler/invoice.go index ab26c40..4a21cf6 100644 --- a/server/router/handler/invoice.go +++ b/server/router/handler/invoice.go @@ -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 diff --git a/server/router/router.go b/server/router/router.go index 7184254..4c257ca 100644 --- a/server/router/router.go +++ b/server/router/router.go @@ -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) }