mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	changes in API format
This commit is contained in:
		| @@ -60,16 +60,6 @@ async function getTree() { | ||||
|     }; | ||||
| } | ||||
|  | ||||
| async function setPrefix(req) { | ||||
|     const branchId = req.params.branchId; | ||||
|     const prefix = utils.isEmptyOrWhitespace(req.body.prefix) ? null : req.body.prefix; | ||||
|  | ||||
|     const branch = await repository.getBranch(branchId); | ||||
|     branch.prefix = prefix; | ||||
|     await branch.save(); | ||||
| } | ||||
|  | ||||
| module.exports = { | ||||
|     getTree, | ||||
|     setPrefix | ||||
|     getTree | ||||
| }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user