trilium/routes/api/anonymization.js
2017-12-23 09:57:20 -05:00

14 lines
No EOL
351 B
JavaScript

"use strict";
const express = require('express');
const router = express.Router();
const anonymization = require('../../services/anonymization');
const auth = require('../../services/auth');
router.post('/anonymize', auth.checkApiAuth, async (req, res, next) => {
await anonymization.anonymize();
res.send({});
});
module.exports = router;