summaryrefslogtreecommitdiff
path: root/src/api/server.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-02-12 05:09:33 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-02-12 05:09:33 +0900
commitd0f8634865be5ee1aa1c809e9f564f7aa1201d19 (patch)
tree66ff27ee7b545ab51b0a44a58a4f13f03326aa40 /src/api/server.ts
parent[Test] Fix test (diff)
downloadsharkey-d0f8634865be5ee1aa1c809e9f564f7aa1201d19.tar.gz
sharkey-d0f8634865be5ee1aa1c809e9f564f7aa1201d19.tar.bz2
sharkey-d0f8634865be5ee1aa1c809e9f564f7aa1201d19.zip
[Server] Fix bug
Diffstat (limited to 'src/api/server.ts')
-rw-r--r--src/api/server.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/server.ts b/src/api/server.ts
index 390032f9a4..976741ff7a 100644
--- a/src/api/server.ts
+++ b/src/api/server.ts
@@ -17,6 +17,7 @@ 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']
@@ -61,7 +62,6 @@ app.use((req, res, next) => {
next();
});
-require('./service/github')(app);
require('./service/twitter')(app);
module.exports = app;