Commit Graph

11 Commits

Author SHA1 Message Date
Michilis
bd18271957 Update README.md
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-17 03:50:03 +00:00
Michilis
e2a13d009f Update README.md 2025-07-19 09:52:10 +02:00
Michilis
a5c32b574c Update README.md 2025-07-19 09:50:30 +02:00
Michilis
91259e98c6 feat: add API_DOMAIN environment variable for production configuration
- Add API_DOMAIN env var to set domain/IP for API in production
- Update swagger.config.js to use dynamic server URLs
- Update server.js CORS configuration to use API_DOMAIN
- Update env.example with new API_DOMAIN field
- Add comprehensive documentation in README.md
- Fixes CORS issues in Swagger docs for production deployments
2025-07-15 21:45:40 +00:00
Michilis
ba36f96f4c Remove redeemId field from redeem response
- Remove redeemId from successful redemption response
- Remove redeemId from error response
- Update swagger documentation to remove redeemId field
- Update README examples to remove redeemId field
- Clean up API response format for better simplicity
2025-07-15 18:03:56 +00:00
Michilis
961380dd88 Fix fee calculation and improve token spendability detection
- Fix critical fee calculation bug: Now gets exact melt quote before creating invoice
- Improve spent token detection: Only marks as spent with clear indicators
- Add spent field to decode endpoint response (always boolean)
- Add informative root endpoint with API documentation
- Update documentation examples to use cashuB format
- Install bolt11 library for proper Lightning invoice verification
- Enhanced error handling and logging throughout

This fixes the issue where users lost sats due to fee estimation errors
and ensures accurate token spendability detection.
2025-07-15 17:41:57 +00:00
michilis
4862196281 smoll update 2025-05-31 16:34:45 +02:00
michilis
7370952308 Better error handling 2025-05-31 16:31:54 +02:00
michilis
076743b417 Updates fix endpoints. 2025-05-31 15:30:11 +02:00
michilis
877d472e7c Updates fix endpoints. 2025-05-31 15:30:07 +02:00
michilis
fc7927e1c8 Initial commit 2025-05-31 14:20:15 +02:00