fix api doc

This commit is contained in:
root
2026-05-27 02:40:00 -04:00
parent a6a628ce66
commit 05d7b1bf8c
2 changed files with 20 additions and 0 deletions
+11
View File
@@ -142,6 +142,17 @@ export function createApp() {
app.use(`${v1}/complaints`, apiLimiter, complaintsRouter)
// ─── Health / Docs ──────────────────────────────────────────
app.get(v1, (_req, res) => {
res.json({
name: 'rentaldrivego-api',
version: '1.0.0',
baseUrl: v1,
health: '/health',
docs: `${v1}/docs`,
openApi: `${v1}/openapi.json`,
})
})
app.get('/health', (_req, res) => {
res.json({ status: 'ok', version: '1.0.0', timestamp: new Date().toISOString() })
})