diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-01-21 13:24:56 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-01-21 13:24:56 +0900 |
| commit | 5bdb4079790f3845c5bee0ee68975c2604db6223 (patch) | |
| tree | 641bf81186cd01af0810baad7cf78b015cf7c7eb /src | |
| parent | [Server] Fix bug (diff) | |
| download | misskey-5bdb4079790f3845c5bee0ee68975c2604db6223.tar.gz misskey-5bdb4079790f3845c5bee0ee68975c2604db6223.tar.bz2 misskey-5bdb4079790f3845c5bee0ee68975c2604db6223.zip | |
[Server] Fix bug
Diffstat (limited to 'src')
| -rw-r--r-- | src/web/service/twitter.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/web/service/twitter.ts b/src/web/service/twitter.ts index 634b6aed7c..d881055f71 100644 --- a/src/web/service/twitter.ts +++ b/src/web/service/twitter.ts @@ -14,14 +14,14 @@ module.exports = (app: express.Application) => { callbackUrl: config.url + '/tw/cb' }); - app.get('/twitter:connect', async (req, res): Promise<any> => { + app.get(/\/connect:twitter/, async (req, res): Promise<any> => { if (res.locals.user == null) return res.send('plz signin'); const ctx = await twAuth.begin(); redis.set(res.locals.user, JSON.stringify(ctx)); res.redirect(ctx.url); }); - app.get('/twitter/callback', (req, res): any => { + app.get('/tw/cb', (req, res): any => { if (res.locals.user == null) return res.send('plz signin'); redis.get(res.locals.user, async (_, ctx) => { const tokens = await twAuth.done(JSON.parse(ctx), req.query.oauth_verifier); |