From b05b6d89d33924aaaeb8e29e898a451a94fe8fc1 Mon Sep 17 00:00:00 2001 From: kiwiidb <33457577+kiwiidb@users.noreply.github.com> Date: Sun, 27 Feb 2022 09:09:00 +0100 Subject: [PATCH] no auth for decoding --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 33440f6..e54de2c 100644 --- a/main.go +++ b/main.go @@ -141,7 +141,6 @@ func main() { secured.GET("/checkpayment/:payment_hash", controllers.NewCheckPaymentController(svc).CheckPayment) secured.GET("/balance", controllers.NewBalanceController(svc).Balance) secured.GET("/getinfo", controllers.NewGetInfoController(svc).GetInfo) - secured.GET("/bolt12/decode/:offer", controllers.NewBolt12Controller(svc).Decode) secured.POST("/bolt12/fetchinvoice", controllers.NewBolt12Controller(svc).FetchInvoice) secured.POST("/bolt12/pay", controllers.NewBolt12Controller(svc).PayBolt12) @@ -158,6 +157,8 @@ func main() { e.GET("/static/css/*", echo.WrapHandler(http.FileServer(http.FS(staticContent)))) e.GET("/static/img/*", echo.WrapHandler(http.FileServer(http.FS(staticContent)))) + e.GET("/bolt12/decode/:offer", controllers.NewBolt12Controller(svc).Decode) + // Subscribe to LND invoice updates in the background // CLN: todo: re-write logic go svc.InvoiceUpdateSubscription(context.Background())