feat(api): register docs route in server and test helper

This commit is contained in:
Siddharth Kumar Sah
2026-03-27 13:50:03 +08:00
parent a46d500012
commit 849878e72f
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -12,6 +12,7 @@ import { registerUpload } from "./plugins/upload.js";
import { apiKeyRoutes } from "./routes/api-keys.js";
import { registerBatchRoutes } from "./routes/batch.js";
import { brandingRoutes } from "./routes/branding.js";
import { docsRoutes } from "./routes/docs.js";
import { fileRoutes } from "./routes/files.js";
import { registerPipelineRoutes } from "./routes/pipeline.js";
import { registerProgressRoutes } from "./routes/progress.js";
@@ -99,6 +100,9 @@ await brandingRoutes(app);
// Teams routes
await teamsRoutes(app);
// API docs (Scalar)
await docsRoutes(app);
// Health check
app.get("/api/v1/health", async () => {
let dbOk = false;