add CLI command to create a new card, fixes #1

This commit is contained in:
Peter Rounce 2022-08-04 15:06:01 +00:00
parent efeb32b09f
commit 136d8db799
10 changed files with 240 additions and 5 deletions

View file

@ -179,7 +179,8 @@ func lnurlw_response(w http.ResponseWriter, req *http.Request) {
return
}
lnurlw_cb_url := os.Getenv("LNURLW_CB_URL")
host_domain := os.Getenv("HOST_DOMAIN")
lnurlw_cb_url := "https://" + host_domain + "/cb"
min_withdraw_sats_str := os.Getenv("MIN_WITHDRAW_SATS")
min_withdraw_sats, err := strconv.Atoi(min_withdraw_sats_str)