mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 04:16:17 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			408 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			408 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
"use strict";
 | 
						|
 | 
						|
const express = require('express');
 | 
						|
const router = express.Router();
 | 
						|
const anonymization = require('../../services/anonymization');
 | 
						|
const auth = require('../../services/auth');
 | 
						|
const wrap = require('express-promise-wrap').wrap;
 | 
						|
 | 
						|
router.post('/anonymize', auth.checkApiAuth, wrap(async (req, res, next) => {
 | 
						|
    await anonymization.anonymize();
 | 
						|
 | 
						|
    res.send({});
 | 
						|
}));
 | 
						|
 | 
						|
module.exports = router; |