summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-01-21 14:41:35 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-01-21 14:41:35 +0900
commit0e5212afd52fd3b88ba94d4e10ad487a62fb70ab (patch)
tree38fef973d58082b65b77b0bb0502a5bc26034600 /src
parent[Server] :v: (diff)
downloadsharkey-0e5212afd52fd3b88ba94d4e10ad487a62fb70ab.tar.gz
sharkey-0e5212afd52fd3b88ba94d4e10ad487a62fb70ab.tar.bz2
sharkey-0e5212afd52fd3b88ba94d4e10ad487a62fb70ab.zip
[Server] Fix bug
Diffstat (limited to 'src')
-rw-r--r--src/api/service/twitter.ts2
1 files changed, 1 insertions, 1 deletions
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<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));