Skip to content

Fix #122: Restore LNURLp endpoints after axum migration#125

Merged
v0l merged 2 commits intoLNVPS:masterfrom
isolkewo:openhands/issue-122-lnurlp-fix
Apr 3, 2026
Merged

Fix #122: Restore LNURLp endpoints after axum migration#125
v0l merged 2 commits intoLNVPS:masterfrom
isolkewo:openhands/issue-122-lnurlp-fix

Conversation

@isolkewo
Copy link
Copy Markdown
Contributor

@isolkewo isolkewo commented Apr 3, 2026

The LNURLp endpoints were lost during the Rocket to Axum migration. The issue was that the path parameter syntax was using Rocket's <param> format instead of Axum's :param format.

Changes made

  • Fixed /.well-known/lnurlp/<id> to /.well-known/lnurlp/:id in routes.rs

This restores the LNURL pay endpoints for VM extension:

  • GET /.well-known/lnurlp/:id - Returns LNURL PayResponse
  • GET /api/v1/vm/{id}/renew-lnurlp?amount={millisats} - Returns invoice

Closes #122

The LNURLp endpoints were lost during the Rocket to Axum migration.
The issue was that the path parameter syntax was using Rocket's
<param> format instead of Axum's :param format.

Changes:
- Fixed /.well-known/lnurlp/<id> to /.well-known/lnurlp/:id

This restores the LNURL pay endpoints for VM extension:
- GET /.well-known/lnurlp/:id - Returns LNURL PayResponse
- GET /api/v1/vm/{id}/renew-lnurlp?amount={millisats} - Returns invoice
@isolkewo isolkewo mentioned this pull request Apr 3, 2026
@v0l
Copy link
Copy Markdown
Contributor

v0l commented Apr 3, 2026

@isolkewo its the wrong format, it should be {id}

@isolkewo
Copy link
Copy Markdown
Contributor Author

isolkewo commented Apr 3, 2026

Fixed! Changed the route from to to match axum's path parameter format. The LNURLp endpoint should now work correctly.

@v0l v0l merged commit 7794a2b into LNVPS:master Apr 3, 2026
5 of 6 checks passed
@isolkewo
Copy link
Copy Markdown
Contributor Author

isolkewo commented Apr 3, 2026

Fixed! The route has been updated from to to match axum's path parameter format. The LNURLp endpoint should now work correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LNURLp endpoints missing

2 participants