register twitter handler on server

main
briandennis 7 years ago
parent 1d05c15351
commit 32a44436ee

@ -29,7 +29,7 @@ app.prepare()
// api endpoints // api endpoints
server.post('/upload', bodyParser.json(), wrap(require('./handlers/upload'))) server.post('/upload', bodyParser.json(), wrap(require('./handlers/upload')))
server.post('/twitter', bodyParser.json(), require('./handlers/twitter'))
server.listen(3000, (err) => { server.listen(3000, (err) => {
if (err) throw err if (err) throw err

Loading…
Cancel
Save