mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	more changes for scripts - separate API etc.
This commit is contained in:
		| @@ -10,8 +10,10 @@ const protected_session = require('../../services/protected_session'); | ||||
| const attributes = require('../../services/attributes'); | ||||
| const script = require('../../services/script'); | ||||
|  | ||||
| router.post('/exec', auth.checkApiAuth, wrap(async (req, res, next) => { | ||||
|     const ret = await script.executeScript(req, req.body.script, req.body.params); | ||||
| router.post('/exec/:noteId', auth.checkApiAuth, wrap(async (req, res, next) => { | ||||
|     const noteId = req.params.noteId; | ||||
|  | ||||
|     const ret = await script.executeScript(noteId, req, req.body.script, req.body.params); | ||||
|  | ||||
|     res.send(ret); | ||||
| })); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user