mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	converted image and maintainance routes
This commit is contained in:
		| @@ -1,15 +1,11 @@ | ||||
| "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) => { | ||||
| async function anonymize() { | ||||
|     await anonymization.anonymize(); | ||||
| } | ||||
|  | ||||
|     res.send({}); | ||||
| })); | ||||
|  | ||||
| module.exports = router; | ||||
| module.exports = { | ||||
|     anonymize | ||||
| }; | ||||
		Reference in New Issue
	
	Block a user