agent / server /src /routes /api-docs.ts
GraziePrego's picture
Upload folder using huggingface_hub
b152fd5 verified
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;
}