mirror of
https://github.com/zadam/trilium.git
synced 2025-01-03 22:01:46 +08:00
recent notes route accepts slash in the param (problem with nginx etc.)
This commit is contained in:
parent
a1469854e8
commit
90a52f57b5
1 changed files with 3 additions and 1 deletions
|
@ -169,7 +169,9 @@ function register(app) {
|
|||
|
||||
apiRoute(GET, '/api/event-log', eventLogRoute.getEventLog);
|
||||
|
||||
apiRoute(PUT, '/api/recent-notes/:branchId/:notePath', recentNotesRoute.addRecentNote);
|
||||
// * 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(GET, '/api/app-info', appInfoRoute.getAppInfo);
|
||||
|
||||
route(GET, '/api/setup/status', [], setupApiRoute.getStatus, apiResultHandler);
|
||||
|
|
Loading…
Reference in a new issue