From 53c637b7e7833207184f582fd7ec2aece4d65b66 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Sun, 1 Feb 2015 00:22:32 -0800 Subject: [PATCH] add api token to projects listing --- controllers/projects.moon | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/controllers/projects.moon b/controllers/projects.moon index d8c5831..caa56e0 100644 --- a/controllers/projects.moon +++ b/controllers/projects.moon @@ -9,6 +9,10 @@ class Projects extends lapis.Application [projects: "/projects"]: => res, code = http.simple { url: "https://api.github.com/users/Xe/repos" + headers: { + ["User-Agent"]: "http://christine.website #{os.getenv "GIT_REV"}" + ["Authorization"]: "token #{os.getenv "GITHUB_TOKEN"}" + } } if code != 200