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 Papadopoulos23297c9860be
diff --git a/apps/server/src/routes/routes.ts b/apps/server/src/routes/routes.tsindex 73beb28e23..9c420ec06e 100644--- a/apps/server/src/routes/routes.ts+++ b/apps/server/src/routes/routes.ts@@ -216,7 +216,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/locales", optionsApiRoute.getSupportedLocales);