summaryrefslogtreecommitdiff
path: root/bucky/app/index.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-12-15 07:31:57 +0100
committerJules Laplace <julescarbon@gmail.com>2017-12-15 07:31:57 +0100
commit0aef20e45046858c198a7854499aeb80f39aaaec (patch)
treeb2525c6e588c9244646a8283eba73400162a1f1e /bucky/app/index.js
parenta1b33089877660ba33331d76281e68790f35ae44 (diff)
federate high up in the foodchain
Diffstat (limited to 'bucky/app/index.js')
-rw-r--r--bucky/app/index.js6
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')