{"action":"created","comment":{"url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/pulls/comments/31886530","id":31886530,"diff_hunk":"@@ -1,4 +1,50 @@\n+// MODULE 4a - FOOD TRUCKS EXPRESS SERVER\n+// Eric Gould\n+// 5 June 2015\n+\n //  in this file create an express application - use the middle-ware built into express\n //  to serve up static files from the public directory (index.html and client.js - you \n //  can also serve up css files from the public directory this way if you want)\n //  you need to support a '/trucks' endpoint, and a dynamic route for '/trucks/:name'\n+\n+var express = require('express');\n+var trucks = require('./trucks');\n+var app = express();\n+\n+var port = process.env.PORT || 3000;\n+\n+app.use(express.static('public'));\n+\n+app.get('/trucks', function (request, response) {\n+    response.send(trucks.getTrucks());\n+}","path":"app.js","position":20,"original_position":20,"commit_id":"919289acb735f0b99dcbcdda320172a2c3390901","original_commit_id":"919289acb735f0b99dcbcdda320172a2c3390901","user":{"login":"jamdon","id":10747092,"avatar_url":"https://avatars.githubusercontent.com/u/10747092?v=3","gravatar_id":"","url":"https://api.github.com/users/jamdon","html_url":"https://github.com/jamdon","followers_url":"https://api.github.com/users/jamdon/followers","following_url":"https://api.github.com/users/jamdon/following{/other_user}","gists_url":"https://api.github.com/users/jamdon/gists{/gist_id}","starred_url":"https://api.github.com/users/jamdon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamdon/subscriptions","organizations_url":"https://api.github.com/users/jamdon/orgs","repos_url":"https://api.github.com/users/jamdon/repos","events_url":"https://api.github.com/users/jamdon/events{/privacy}","received_events_url":"https://api.github.com/users/jamdon/received_events","type":"User","site_admin":false},"body":"Missing the close ');' here.","created_at":"2015-06-08T04:24:54Z","updated_at":"2015-06-08T04:24:54Z","html_url":"https://github.com/JSCRIPT300-Spring2015/Module_4a/pull/24#discussion_r31886530","pull_request_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/pulls/comments/31886530"},"html":{"href":"https://github.com/JSCRIPT300-Spring2015/Module_4a/pull/24#discussion_r31886530"},"pull_request":{"href":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/pulls/24","id":37118706,"html_url":"https://github.com/JSCRIPT300-Spring2015/Module_4a/pull/24","diff_url":"https://github.com/JSCRIPT300-Spring2015/Module_4a/pull/24.diff","patch_url":"https://github.com/JSCRIPT300-Spring2015/Module_4a/pull/24.patch","issue_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/issues/24","number":24,"state":"open","locked":false,"title":"Module 4a - FOOD TRUCKS EXPRESS SERVER","user":{"login":"surface2air","id":4358732,"avatar_url":"https://avatars.githubusercontent.com/u/4358732?v=3","gravatar_id":"","url":"https://api.github.com/users/surface2air","html_url":"https://github.com/surface2air","followers_url":"https://api.github.com/users/surface2air/followers","following_url":"https://api.github.com/users/surface2air/following{/other_user}","gists_url":"https://api.github.com/users/surface2air/gists{/gist_id}","starred_url":"https://api.github.com/users/surface2air/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/surface2air/subscriptions","organizations_url":"https://api.github.com/users/surface2air/orgs","repos_url":"https://api.github.com/users/surface2air/repos","events_url":"https://api.github.com/users/surface2air/events{/privacy}","received_events_url":"https://api.github.com/users/surface2air/received_events","type":"User","site_admin":false},"body":"Submitting a Pull Request for Module 4a assignment.","created_at":"2015-06-08T02:32:23Z","updated_at":"2015-06-08T04:24:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5a961d66eaa2ae857383224df1a0974a46ec7984","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/pulls/24/commits","review_comments_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/pulls/24/comments","review_comment_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/issues/24/comments","statuses_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/statuses/919289acb735f0b99dcbcdda320172a2c3390901","head":{"label":"surface2air:master","ref":"master","sha":"919289acb735f0b99dcbcdda320172a2c3390901","user":{"login":"surface2air","id":4358732,"avatar_url":"https://avatars.githubusercontent.com/u/4358732?v=3","gravatar_id":"","url":"https://api.github.com/users/surface2air","html_url":"https://github.com/surface2air","followers_url":"https://api.github.com/users/surface2air/followers","following_url":"https://api.github.com/users/surface2air/following{/other_user}","gists_url":"https://api.github.com/users/surface2air/gists{/gist_id}","starred_url":"https://api.github.com/users/surface2air/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/surface2air/subscriptions","organizations_url":"https://api.github.com/users/surface2air/orgs","repos_url":"https://api.github.com/users/surface2air/repos","events_url":"https://api.github.com/users/surface2air/events{/privacy}","received_events_url":"https://api.github.com/users/surface2air/received_events","type":"User","site_admin":false},"repo":{"id":36898271,"name":"Module_4a","full_name":"surface2air/Module_4a","owner":{"login":"surface2air","id":4358732,"avatar_url":"https://avatars.githubusercontent.com/u/4358732?v=3","gravatar_id":"","url":"https://api.github.com/users/surface2air","html_url":"https://github.com/surface2air","followers_url":"https://api.github.com/users/surface2air/followers","following_url":"https://api.github.com/users/surface2air/following{/other_user}","gists_url":"https://api.github.com/users/surface2air/gists{/gist_id}","starred_url":"https://api.github.com/users/surface2air/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/surface2air/subscriptions","organizations_url":"https://api.github.com/users/surface2air/orgs","repos_url":"https://api.github.com/users/surface2air/repos","events_url":"https://api.github.com/users/surface2air/events{/privacy}","received_events_url":"https://api.github.com/users/surface2air/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/surface2air/Module_4a","description":"","fork":true,"url":"https://api.github.com/repos/surface2air/Module_4a","forks_url":"https://api.github.com/repos/surface2air/Module_4a/forks","keys_url":"https://api.github.com/repos/surface2air/Module_4a/keys{/key_id}","collaborators_url":"https://api.github.com/repos/surface2air/Module_4a/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/surface2air/Module_4a/teams","hooks_url":"https://api.github.com/repos/surface2air/Module_4a/hooks","issue_events_url":"https://api.github.com/repos/surface2air/Module_4a/issues/events{/number}","events_url":"https://api.github.com/repos/surface2air/Module_4a/events","assignees_url":"https://api.github.com/repos/surface2air/Module_4a/assignees{/user}","branches_url":"https://api.github.com/repos/surface2air/Module_4a/branches{/branch}","tags_url":"https://api.github.com/repos/surface2air/Module_4a/tags","blobs_url":"https://api.github.com/repos/surface2air/Module_4a/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/surface2air/Module_4a/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/surface2air/Module_4a/git/refs{/sha}","trees_url":"https://api.github.com/repos/surface2air/Module_4a/git/trees{/sha}","statuses_url":"https://api.github.com/repos/surface2air/Module_4a/statuses/{sha}","languages_url":"https://api.github.com/repos/surface2air/Module_4a/languages","stargazers_url":"https://api.github.com/repos/surface2air/Module_4a/stargazers","contributors_url":"https://api.github.com/repos/surface2air/Module_4a/contributors","subscribers_url":"https://api.github.com/repos/surface2air/Module_4a/subscribers","subscription_url":"https://api.github.com/repos/surface2air/Module_4a/subscription","commits_url":"https://api.github.com/repos/surface2air/Module_4a/commits{/sha}","git_commits_url":"https://api.github.com/repos/surface2air/Module_4a/git/commits{/sha}","comments_url":"https://api.github.com/repos/surface2air/Module_4a/comments{/number}","issue_comment_url":"https://api.github.com/repos/surface2air/Module_4a/issues/comments{/number}","contents_url":"https://api.github.com/repos/surface2air/Module_4a/contents/{+path}","compare_url":"https://api.github.com/repos/surface2air/Module_4a/compare/{base}...{head}","merges_url":"https://api.github.com/repos/surface2air/Module_4a/merges","archive_url":"https://api.github.com/repos/surface2air/Module_4a/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/surface2air/Module_4a/downloads","issues_url":"https://api.github.com/repos/surface2air/Module_4a/issues{/number}","pulls_url":"https://api.github.com/repos/surface2air/Module_4a/pulls{/number}","milestones_url":"https://api.github.com/repos/surface2air/Module_4a/milestones{/number}","notifications_url":"https://api.github.com/repos/surface2air/Module_4a/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/surface2air/Module_4a/labels{/name}","releases_url":"https://api.github.com/repos/surface2air/Module_4a/releases{/id}","created_at":"2015-06-04T22:18:18Z","updated_at":"2015-06-05T22:03:36Z","pushed_at":"2015-06-08T02:27:16Z","git_url":"git://github.com/surface2air/Module_4a.git","ssh_url":"git@github.com:surface2air/Module_4a.git","clone_url":"https://github.com/surface2air/Module_4a.git","svn_url":"https://github.com/surface2air/Module_4a","homepage":null,"size":103,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"JSCRIPT300-Spring2015:master","ref":"master","sha":"de58e47cc078ed936cc7103b27397e8bd05565e0","user":{"login":"JSCRIPT300-Spring2015","id":11728112,"avatar_url":"https://avatars.githubusercontent.com/u/11728112?v=3","gravatar_id":"","url":"https://api.github.com/users/JSCRIPT300-Spring2015","html_url":"https://github.com/JSCRIPT300-Spring2015","followers_url":"https://api.github.com/users/JSCRIPT300-Spring2015/followers","following_url":"https://api.github.com/users/JSCRIPT300-Spring2015/following{/other_user}","gists_url":"https://api.github.com/users/JSCRIPT300-Spring2015/gists{/gist_id}","starred_url":"https://api.github.com/users/JSCRIPT300-Spring2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JSCRIPT300-Spring2015/subscriptions","organizations_url":"https://api.github.com/users/JSCRIPT300-Spring2015/orgs","repos_url":"https://api.github.com/users/JSCRIPT300-Spring2015/repos","events_url":"https://api.github.com/users/JSCRIPT300-Spring2015/events{/privacy}","received_events_url":"https://api.github.com/users/JSCRIPT300-Spring2015/received_events","type":"Organization","site_admin":false},"repo":{"id":34243710,"name":"Module_4a","full_name":"JSCRIPT300-Spring2015/Module_4a","owner":{"login":"JSCRIPT300-Spring2015","id":11728112,"avatar_url":"https://avatars.githubusercontent.com/u/11728112?v=3","gravatar_id":"","url":"https://api.github.com/users/JSCRIPT300-Spring2015","html_url":"https://github.com/JSCRIPT300-Spring2015","followers_url":"https://api.github.com/users/JSCRIPT300-Spring2015/followers","following_url":"https://api.github.com/users/JSCRIPT300-Spring2015/following{/other_user}","gists_url":"https://api.github.com/users/JSCRIPT300-Spring2015/gists{/gist_id}","starred_url":"https://api.github.com/users/JSCRIPT300-Spring2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JSCRIPT300-Spring2015/subscriptions","organizations_url":"https://api.github.com/users/JSCRIPT300-Spring2015/orgs","repos_url":"https://api.github.com/users/JSCRIPT300-Spring2015/repos","events_url":"https://api.github.com/users/JSCRIPT300-Spring2015/events{/privacy}","received_events_url":"https://api.github.com/users/JSCRIPT300-Spring2015/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/JSCRIPT300-Spring2015/Module_4a","description":"","fork":false,"url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a","forks_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/forks","keys_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/teams","hooks_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/hooks","issue_events_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/issues/events{/number}","events_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/events","assignees_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/assignees{/user}","branches_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/branches{/branch}","tags_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/tags","blobs_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/git/refs{/sha}","trees_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/statuses/{sha}","languages_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/languages","stargazers_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/stargazers","contributors_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/contributors","subscribers_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/subscribers","subscription_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/subscription","commits_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/commits{/sha}","git_commits_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/git/commits{/sha}","comments_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/comments{/number}","issue_comment_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/issues/comments{/number}","contents_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/contents/{+path}","compare_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/merges","archive_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/downloads","issues_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/issues{/number}","pulls_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/pulls{/number}","milestones_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/milestones{/number}","notifications_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/labels{/name}","releases_url":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/releases{/id}","created_at":"2015-04-20T07:01:04Z","updated_at":"2015-05-04T17:28:10Z","pushed_at":"2015-06-08T02:32:24Z","git_url":"git://github.com/JSCRIPT300-Spring2015/Module_4a.git","ssh_url":"git@github.com:JSCRIPT300-Spring2015/Module_4a.git","clone_url":"https://github.com/JSCRIPT300-Spring2015/Module_4a.git","svn_url":"https://github.com/JSCRIPT300-Spring2015/Module_4a","homepage":null,"size":693,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":1,"forks":24,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/pulls/24"},"html":{"href":"https://github.com/JSCRIPT300-Spring2015/Module_4a/pull/24"},"issue":{"href":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/issues/24"},"comments":{"href":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/JSCRIPT300-Spring2015/Module_4a/statuses/919289acb735f0b99dcbcdda320172a2c3390901"}}}}