Refactor: move services to components, add route modules
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user