Add keysend support for Lightning Address

Allow keysend payments to user addresses. Useful for Podcasting 2.0/v4v.
This commit is contained in:
Râu Cao
2023-02-19 17:45:27 +08:00
parent 84337c3a7d
commit c7fe1bc3bc
4 changed files with 41 additions and 2 deletions

View File

@@ -30,6 +30,7 @@ Rails.application.routes.draw do
get 'lnurlpay/:address', to: 'lnurlpay#index', constraints: { address: /[^\/]+/}
get 'lnurlpay/:address/invoice', to: 'lnurlpay#invoice', constraints: { address: /[^\/]+/}
get 'keysend/:address', to: 'lnurlpay#keysend', constraints: { address: /[^\/]+/}
post 'webhooks/lndhub', to: 'webhooks#lndhub'