From 3f90a011c4617cb15cede77f285ee445937afc6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Sun, 31 Mar 2024 12:09:18 +0300 Subject: [PATCH] Document URLs --- app/controllers/lnurlpay_controller.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/controllers/lnurlpay_controller.rb b/app/controllers/lnurlpay_controller.rb index 5fd32fb..0ca11be 100644 --- a/app/controllers/lnurlpay_controller.rb +++ b/app/controllers/lnurlpay_controller.rb @@ -6,6 +6,7 @@ class LnurlpayController < ApplicationController MAX_SATS = 1_000_000 MAX_COMMENT_CHARS = 100 + # GET /.well-known/lnurlp/:username def index render json: { status: "OK", @@ -18,6 +19,7 @@ class LnurlpayController < ApplicationController } end + # GET /.well-known/keysend/:username def keysend http_status :not_found and return unless Setting.lndhub_keysend_enabled? @@ -32,6 +34,7 @@ class LnurlpayController < ApplicationController } end + # GET /lnurlpay/:username/invoice def invoice amount = params[:amount].to_i / 1000 # msats comment = params[:comment] || ""