From 184f28fe5d30c639ec5eedc6a978474a86c7ebc9 Mon Sep 17 00:00:00 2001 From: Michilis Date: Tue, 15 Jul 2025 22:05:42 +0000 Subject: [PATCH] docs: remove GET / endpoint from Swagger documentation - Remove the General category and GET / endpoint from API docs - Keep the endpoint functional but hidden from Swagger UI - Clean up documentation to focus on core API endpoints --- server.js | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) diff --git a/server.js b/server.js index 0fe2d16..06e4cad 100644 --- a/server.js +++ b/server.js @@ -112,52 +112,6 @@ function asyncHandler(fn) { // API Routes -/** - * @swagger - * /: - * get: - * summary: API Information - * description: Get basic information about the Cashu Redeem API - * tags: [General] - * responses: - * 200: - * description: API information - * content: - * application/json: - * schema: - * type: object - * properties: - * name: - * type: string - * example: "Cashu Redeem API" - * version: - * type: string - * example: "1.0.0" - * description: - * type: string - * example: "A production-grade API for redeeming Cashu tokens (ecash) to Lightning addresses" - * documentation: - * type: string - * example: "/docs" - * endpoints: - * type: object - * properties: - * decode: - * type: string - * example: "POST /api/decode" - * redeem: - * type: string - * example: "POST /api/redeem" - * validate: - * type: string - * example: "POST /api/validate-address" - * health: - * type: string - * example: "GET /api/health" - * github: - * type: string - * example: "https://github.com/yourusername/cashu-redeem-api" - */ app.get('/', (req, res) => { res.json({ name: 'Cashu Redeem API',