From f796cb2945bb0aef04acad3e196bbddaa8107ce3 Mon Sep 17 00:00:00 2001 From: Max Wofford Date: Mon, 14 Oct 2019 14:23:17 -0400 Subject: [PATCH] Add redirect to sdp form --- src/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 9f92831..5d98a81 100644 --- a/src/index.js +++ b/src/index.js @@ -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) }