diff options
Diffstat (limited to 'bucky/app/index.js')
| -rw-r--r-- | bucky/app/index.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bucky/app/index.js b/bucky/app/index.js index 71b2d57..19435da 100644 --- a/bucky/app/index.js +++ b/bucky/app/index.js @@ -18,6 +18,8 @@ var upload = require('../util/upload') var app, server +var federate = require('./federate') + var site = module.exports = {} site.init = function(){ app = express() @@ -48,9 +50,11 @@ site.init = function(){ saveUninitialized: false, })) + federate.route(app) + app.use(csurf({ cookie: true, - value: (req) => req.headers['csrf-token'], + value: (req) => { req.headers['csrf-token'] } })) app.disable('x-powered-by') |
