avoid various HTTP server issues with slashes by putting notePath into the body with POST

This commit is contained in:
zadam
2019-02-17 20:49:51 +01:00
parent a7fce33750
commit c1ce0c6b22
3 changed files with 4 additions and 6 deletions

View File

@@ -172,9 +172,7 @@ function register(app) {
apiRoute(GET, '/api/event-log', eventLogRoute.getEventLog);
// * at the end means this will match params containing slash as well
// this is a problem with nginx (and possibly other proxies) which translate escaped slash back to the literal slash character
apiRoute(PUT, '/api/recent-notes/:branchId/:notePath*', recentNotesRoute.addRecentNote);
apiRoute(POST, '/api/recent-notes', recentNotesRoute.addRecentNote);
apiRoute(GET, '/api/app-info', appInfoRoute.getAppInfo);
route(GET, '/api/setup/status', [], setupApiRoute.getStatus, apiResultHandler);