auth changes

This commit is contained in:
azivner
2017-12-23 09:57:20 -05:00
parent 215c3a414f
commit c07c18f08a
9 changed files with 22 additions and 17 deletions

View File

@@ -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({});