no auth for decoding

This commit is contained in:
kiwiidb
2022-02-27 09:09:00 +01:00
committed by GitHub
parent d067b2c2d2
commit b05b6d89d3

View File

@@ -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())