create db/lnd/email packages

This commit is contained in:
Peter Rounce 2023-02-18 14:14:57 +00:00
parent 6153edd0c3
commit 9545e5bd4e
12 changed files with 255 additions and 736 deletions

View file

@ -5,6 +5,7 @@ import (
log "github.com/sirupsen/logrus"
"net/http"
"time"
"github.com/boltcard/boltcard/db"
)
var router = mux.NewRouter()
@ -24,7 +25,7 @@ func write_error_message(w http.ResponseWriter, message string) {
}
func main() {
log_level := db_get_setting("LOG_LEVEL")
log_level := db.Get_setting("LOG_LEVEL")
switch log_level {
case "DEBUG":
@ -50,7 +51,7 @@ func main() {
router.Path("/.well-known/lnurlp/{name}").Methods("GET").HandlerFunc(lnurlp_response)
router.Path("/lnurlp/{name}").Methods("GET").HandlerFunc(lnurlp_callback)
port := db_get_setting("HOST_PORT")
port := db.Get_setting("HOST_PORT")
if port == "" {
port = "9000"
}