Skip to content
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.

Commit

Permalink
Add redirect to sdp form
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwofford committed Oct 14, 2019
1 parent 95bed44 commit f796cb2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ app.get('/', async (req, res) => {
const ghUser = await request('GET /user', {
headers: { Authorization: `token ${accessToken}` },
})
res.json(ghUser.data)

res.redirect(
302,
`https://airtable.com/shrlf0NgVfVBI51hU?prefill_GitHub%20Username=${ghUser.data.login}`
)
} catch (e) {
console.error(e)
}
Expand Down

0 comments on commit f796cb2

Please sign in to comment.