diff --git a/server/api/utils.js b/server/api/utils.js index 17694c4..1104ea6 100644 --- a/server/api/utils.js +++ b/server/api/utils.js @@ -32,8 +32,80 @@ function sendRejection(response, status = 400, content) { } function writeJSON(response, data) { - response.setHeader('Content-Type', 'application/json'); - response.write(JSON.stringify(data)); + response.setHeader('Content-Type', 'text/html'); + response.write(` + + + + + Github access token for candi-tab + + + + + +
+

Success!

+

Copy the following access token and paste it into the extension.

+
+ + +
+
+ + + + + `); } module.exports = {