diff --git a/src/api/server.ts b/src/api/server.ts index 976741ff7..390032f9a 100644 --- a/src/api/server.ts +++ b/src/api/server.ts @@ -17,7 +17,6 @@ const app = express(); app.disable('x-powered-by'); app.set('etag', false); -require('./service/github')(app); app.use(bodyParser.urlencoded({ extended: true })); app.use(bodyParser.json({ type: ['application/json', 'text/plain'] @@ -62,6 +61,7 @@ app.use((req, res, next) => { next(); }); +require('./service/github')(app); require('./service/twitter')(app); module.exports = app;