Add names for lnurl routes

This commit is contained in:
Râu Cao 2023-02-23 17:46:19 +08:00
parent c7fe1bc3bc
commit 68ab88c481
Signed by: raucao
GPG Key ID: 15E65F399D084BA9

View File

@ -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'