Add names for lnurl routes
This commit is contained in:
parent
c7fe1bc3bc
commit
68ab88c481
@ -28,9 +28,12 @@ Rails.application.routes.draw do
|
|||||||
get 'wallet', to: 'wallet#index'
|
get 'wallet', to: 'wallet#index'
|
||||||
get 'wallet/transactions', to: 'wallet#transactions'
|
get 'wallet/transactions', to: 'wallet#transactions'
|
||||||
|
|
||||||
get 'lnurlpay/:address', to: 'lnurlpay#index', constraints: { address: /[^\/]+/}
|
get 'lnurlpay/:address', to: 'lnurlpay#index',
|
||||||
get 'lnurlpay/:address/invoice', to: 'lnurlpay#invoice', constraints: { address: /[^\/]+/}
|
as: 'lightning_address', constraints: { address: /[^\/]+/}
|
||||||
get 'keysend/:address', to: 'lnurlpay#keysend', constraints: { address: /[^\/]+/}
|
get 'lnurlpay/:address/invoice', to: 'lnurlpay#invoice',
|
||||||
|
as: 'lnurlpay_invoice', constraints: { address: /[^\/]+/}
|
||||||
|
get 'keysend/:address', to: 'lnurlpay#keysend',
|
||||||
|
as: 'lightning_address_keysend', constraints: { address: /[^\/]+/}
|
||||||
|
|
||||||
post 'webhooks/lndhub', to: 'webhooks#lndhub'
|
post 'webhooks/lndhub', to: 'webhooks#lndhub'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user