Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(routes): remove unused wildcard in apiRoute "/api/options/:name/:value*"
Panagiotis Papadopoulos8d09ff429904
diff --git a/src/routes/routes.ts b/src/routes/routes.tsindex 25a48a7429..37bca7988f 100644--- a/src/routes/routes.ts+++ b/src/routes/routes.ts@@ -238,7 +238,7 @@ function register(app: express.Application) {apiRoute(GET, "/api/options", optionsApiRoute.getOptions);// FIXME: possibly change to sending value in the body to avoid host of HTTP server issues with slashes- apiRoute(PUT, "/api/options/:name/:value*", optionsApiRoute.updateOption);+ apiRoute(PUT, "/api/options/:name/:value", optionsApiRoute.updateOption);apiRoute(PUT, "/api/options", optionsApiRoute.updateOptions);apiRoute(GET, "/api/options/user-themes", optionsApiRoute.getUserThemes);apiRoute(GET, "/api/options/codeblock-themes", optionsApiRoute.getSyntaxHighlightingThemes);