1
1
mirror of https://github.com/bumi/lntip synced 2025-07-06 00:58:56 +00:00
This commit is contained in:
bumi 2019-02-20 01:31:03 +01:00
parent 01fb7be447
commit faf858f0c4
2 changed files with 104 additions and 106 deletions

View File

@ -28,10 +28,10 @@ func main() {
flag.Parse()
e := echo.New()
if (*staticPath != "") {
if *staticPath != "" {
e.Static("/static", *staticPath)
}
if (!*disableCors) {
if !*disableCors {
e.Use(middleware.CORS())
}
e.Use(middleware.Recover())

View File

@ -8,14 +8,13 @@ import (
"os"
"github.com/lightningnetwork/lnd/lnrpc"
"gopkg.in/macaroon.v2"
"github.com/lightningnetwork/lnd/macaroons"
"gopkg.in/macaroon.v2"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
)
var stdOutLogger = log.New(os.Stdout, "", log.LstdFlags)
// thanks https://github.com/philippgille/ln-paywall/
@ -135,4 +134,3 @@ type LNDoptions struct {
// Optional ("invoice.macaroon" by default).
MacaroonFile string
}