Skip to content
Snippets Groups Projects
Commit 0e5212af authored by syuilo's avatar syuilo
Browse files

[Server] Fix bug

parent f3026253
No related branches found
No related tags found
No related merge requests found
......@@ -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));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment