diff --git a/lib/routes/twitter/keyword.js b/lib/routes/twitter/keyword.js index 01bfca71ad85ac..027c410c4395bf 100644 --- a/lib/routes/twitter/keyword.js +++ b/lib/routes/twitter/keyword.js @@ -1,3 +1,3 @@ -const webApiImpl = require('./web-api/search'); +import webApiImpl from './web-api/search'; export default async (ctx) => await webApiImpl(ctx); diff --git a/lib/routes/twitter/media.js b/lib/routes/twitter/media.js index 595b7165cd8ff8..81eba91621be40 100644 --- a/lib/routes/twitter/media.js +++ b/lib/routes/twitter/media.js @@ -1,3 +1,3 @@ -const webApiImpl = require('./web-api/media'); +import webApiImpl from './web-api/media'; export default async (ctx) => await webApiImpl(ctx); diff --git a/lib/routes/twitter/tweet.js b/lib/routes/twitter/tweet.js index d65d1e8ea0fe82..16d93a203ed939 100644 --- a/lib/routes/twitter/tweet.js +++ b/lib/routes/twitter/tweet.js @@ -1,4 +1,4 @@ -const webApiImpl = require('./web-api/tweet'); +import webApiImpl from './web-api/tweet'; export default async (ctx) => { await webApiImpl(ctx); diff --git a/lib/routes/twitter/user.js b/lib/routes/twitter/user.js index 70359ed26b9778..c3074f0403267e 100644 --- a/lib/routes/twitter/user.js +++ b/lib/routes/twitter/user.js @@ -1,3 +1,3 @@ -const webApiImpl = require('./web-api/user'); +import webApiImpl from './web-api/user'; export default (ctx) => webApiImpl(ctx);