mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 20:06:08 +01:00
db anonymization implementation
This commit is contained in:
13
routes/api/anonymization.js
Normal file
13
routes/api/anonymization.js
Normal file
@@ -0,0 +1,13 @@
|
||||
"use strict";
|
||||
|
||||
const express = require('express');
|
||||
const router = express.Router();
|
||||
const anonymization = require('../../services/anonymization');
|
||||
|
||||
router.post('/anonymize', async (req, res, next) => {
|
||||
await anonymization.anonymize();
|
||||
|
||||
res.send({});
|
||||
});
|
||||
|
||||
module.exports = router;
|
||||
Reference in New Issue
Block a user