diff --git a/src/api/service/twitter.ts b/src/api/service/twitter.ts index 606a11a712..b346e891a9 100644 --- a/src/api/service/twitter.ts +++ b/src/api/service/twitter.ts @@ -14,7 +14,7 @@ module.exports = (app: express.Application) => { callbackUrl: config.url + '/tw/cb' }); - app.get('connect/twitter', async (req, res): Promise => { + app.get('/connect/twitter', async (req, res): Promise => { if (res.locals.user == null) return res.send('plz signin'); const ctx = await twAuth.begin(); redis.set(res.locals.user, JSON.stringify(ctx));