Tor middleware #499

Merged
bones7242 merged 16 commits from tor-middleware into master 2018-06-29 02:59:56 +02:00
Showing only changes of commit 7a0a4820c9 - Show all commits

View file

@ -22,6 +22,11 @@ const authenticateUser = require('./authentication.js');
*/
const claimPublish = ({ body, files, headers, ip, originalUrl, user, tor }, res) => {
// logging
logger.info('Publish request:', {
ip,
headers,
});
// check for disabled publishing
if (disabled) {
return res.status(503).json({