Spaces:
Paused
Paused
| import { Router } from "express"; | |
| export function apiDocsRoutes() { | |
| const router = Router(); | |
| router.get("/", (req, res) => { | |
| res.json({ | |
| endpoints: [ | |
| { | |
| method: "GET", | |
| path: "/health", | |
| purpose: "Returns HTTP 200 when the app is ready and provides health information." | |
| }, | |
| { | |
| method: "GET", | |
| path: "/api-docs", | |
| purpose: "Documents all available API endpoints." | |
| } | |
| ] | |
| }); | |
| }); | |
| return router; | |
| } | |