Skip to content

Build your personal knowledge base with Trilium Notes

Change Swagger endpoint and site title

perf3ctd859f50c9881
diff --git a/src/routes/api_docs.ts b/src/routes/api_docs.ts
index 7546c50d17..f2fb9e08e2 100644
--- a/src/routes/api_docs.ts
+++ b/src/routes/api_docs.ts
@@ -12,11 +12,11 @@ const swaggerDocument = yaml.load(
function register(router: Router) {
router.use(
- "/api-docs",
+ "/etapi",
swaggerUi.serve,
swaggerUi.setup(swaggerDocument, {
explorer: true,
- customSiteTitle: "Trilium ETAPI Documentation"
+ customSiteTitle: "TriliumNext ETAPI Documentation"
})
);
}