trilium/routes/api/anonymization.js

13 lines
287 B
JavaScript
Raw Normal View History

2017-12-16 13:05:37 +08:00
"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;