mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 13:39:01 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			481 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			481 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
"use strict";
 | 
						|
 | 
						|
const cloningService = require('../../services/cloning');
 | 
						|
 | 
						|
function cloneNoteToParent(req) {
 | 
						|
    const {noteId, parentBranchId} = req.params;
 | 
						|
    const {prefix} = req.body;
 | 
						|
 | 
						|
    return cloningService.cloneNoteToParent(noteId, parentBranchId, prefix);
 | 
						|
}
 | 
						|
 | 
						|
function cloneNoteAfter(req) {
 | 
						|
    const {noteId, afterBranchId} = req.params;
 | 
						|
 | 
						|
    return cloningService.cloneNoteAfter(noteId, afterBranchId);
 | 
						|
}
 | 
						|
 | 
						|
module.exports = {
 | 
						|
    cloneNoteToParent,
 | 
						|
    cloneNoteAfter
 | 
						|
};
 |