Add blank routes required for bluewallet

This commit is contained in:
Michael Bumann
2022-01-20 14:02:32 +01:00
parent 6822b274e5
commit 31570b8adf
3 changed files with 13 additions and 2 deletions

View File

@@ -119,6 +119,7 @@ func main() {
secured.POST("/addinvoice", controllers.NewAddInvoiceController(svc).AddInvoice)
secured.POST("/payinvoice", controllers.NewPayInvoiceController(svc).PayInvoice)
secured.GET("/gettxs", controllers.NewGetTXSController(svc).GetTXS)
secured.GET("/getuserinvoices", controllers.NewGetTXSController(svc).GetUserInvoices)
secured.GET("/checkpayment/:payment_hash", controllers.NewCheckPaymentController(svc).CheckPayment)
secured.GET("/balance", controllers.NewBalanceController(svc).Balance)
secured.GET("/getinfo", controllers.NewGetInfoController(svc).GetInfo)
@@ -127,6 +128,7 @@ func main() {
blankController := controllers.NewBlankController(svc)
secured.GET("/getbtc", blankController.GetBtc)
secured.GET("/getpending", blankController.GetPending)
e.GET("/", blankController.Home)
// Start server
go func() {