Tor middleware #499
1 changed files with 5 additions and 0 deletions
|
@ -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({
|
||||
|
|
Loading…
Add table
Reference in a new issue