mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
auth changes
This commit is contained in:
@@ -3,8 +3,9 @@
|
||||
const express = require('express');
|
||||
const router = express.Router();
|
||||
const anonymization = require('../../services/anonymization');
|
||||
const auth = require('../../services/auth');
|
||||
|
||||
router.post('/anonymize', async (req, res, next) => {
|
||||
router.post('/anonymize', auth.checkApiAuth, async (req, res, next) => {
|
||||
await anonymization.anonymize();
|
||||
|
||||
res.send({});
|
||||
|
||||
Reference in New Issue
Block a user