mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 04:51:31 +08:00 
			
		
		
		
	recent notes route accepts slash in the param (problem with nginx etc.)
This commit is contained in:
		
							parent
							
								
									a1469854e8
								
							
						
					
					
						commit
						90a52f57b5
					
				| @ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 azivner
						azivner