mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	bind global menu item "Open SQL console" to the logic to create such a note
This commit is contained in:
		@@ -181,6 +181,7 @@ function register(app) {
 | 
			
		||||
    apiRoute(GET, '/api/date-notes/month/:month', dateNotesRoute.getMonthNote);
 | 
			
		||||
    apiRoute(GET, '/api/date-notes/year/:year', dateNotesRoute.getYearNote);
 | 
			
		||||
    apiRoute(GET, '/api/date-notes/notes-for-month/:month', dateNotesRoute.getDateNotesForMonth);
 | 
			
		||||
    apiRoute(POST, '/api/sql-console', dateNotesRoute.createSqlConsole);
 | 
			
		||||
 | 
			
		||||
    route(GET, '/api/images/:noteId/:filename', [auth.checkApiAuthOrElectron], imageRoute.returnImage);
 | 
			
		||||
    route(POST, '/api/images', [auth.checkApiAuthOrElectron, uploadMiddleware, csrfMiddleware], imageRoute.uploadImage, apiResultHandler);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user