Refactor: move services to components, add route modules

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Michilis
2026-02-17 03:46:46 +00:00
parent e2a13d009f
commit 50e5787ec2
12 changed files with 902 additions and 1218 deletions

View File

@@ -16,7 +16,7 @@ const options = {
openapi: '3.0.0',
info: {
title: 'Cashu Redeem API',
version: '1.0.0',
version: '2.0.0',
description: 'A production-grade API for redeeming Cashu tokens (ecash) to Lightning addresses using the cashu-ts library and LNURLp protocol.',
contact: {
name: 'API Support',
@@ -337,10 +337,14 @@ const options = {
{
name: 'Validation',
description: 'Validation utilities for tokens and Lightning addresses'
},
{
name: 'Status & Monitoring',
description: 'Health check and API status endpoints'
}
]
},
apis: ['./server.js'], // paths to files containing OpenAPI definitions
apis: ['./server.js', './routes/*.js'], // paths to files containing OpenAPI definitions
};
const specs = swaggerJsdoc(options);