mirror of
https://github.com/getAlby/lndhub.go.git
synced 2025-12-23 23:55:02 +01:00
no auth for decoding
This commit is contained in:
3
main.go
3
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())
|
||||
|
||||
Reference in New Issue
Block a user