Skip to content

Build your personal knowledge base with Trilium Notes

chore(nx/server): fix api_docs_js_1.default.register is not a function

Elian Dorane817a55660a6
diff --git a/apps/server/src/routes/routes.ts b/apps/server/src/routes/routes.ts
index 082e05cd07..2707c3cd8f 100644
--- a/apps/server/src/routes/routes.ts
+++ b/apps/server/src/routes/routes.ts
@@ -431,7 +431,7 @@ function register(app: express.Application) {
apiRoute(GET, "/api/llm/providers/anthropic/models", anthropicRoute.listModels);
// API Documentation
- apiDocsRoute.register(app);
+ apiDocsRoute(app);
app.use("", router);
}