{"action":"created","comment":{"url":"https://api.github.com/repos/promisasu/Portal/pulls/comments/59809244","id":59809244,"diff_hunk":"@@ -118,6 +118,20 @@ function dashboardServer (configuration) {\n \n     // load application routes\n     server.route(router);\n+    if (configuration.application) {","path":"controller/server.js","position":4,"original_position":4,"commit_id":"5ea1a0c64194b1b1eb18089afdbfc15bbdfee675","original_commit_id":"5ea1a0c64194b1b1eb18089afdbfc15bbdfee675","user":{"login":"ChristianMurphy","id":3107513,"avatar_url":"https://avatars.githubusercontent.com/u/3107513?v=3","gravatar_id":"","url":"https://api.github.com/users/ChristianMurphy","html_url":"https://github.com/ChristianMurphy","followers_url":"https://api.github.com/users/ChristianMurphy/followers","following_url":"https://api.github.com/users/ChristianMurphy/following{/other_user}","gists_url":"https://api.github.com/users/ChristianMurphy/gists{/gist_id}","starred_url":"https://api.github.com/users/ChristianMurphy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChristianMurphy/subscriptions","organizations_url":"https://api.github.com/users/ChristianMurphy/orgs","repos_url":"https://api.github.com/users/ChristianMurphy/repos","events_url":"https://api.github.com/users/ChristianMurphy/events{/privacy}","received_events_url":"https://api.github.com/users/ChristianMurphy/received_events","type":"User","site_admin":false},"body":":sparkles: ","created_at":"2016-04-14T23:36:37Z","updated_at":"2016-04-14T23:36:37Z","html_url":"https://github.com/promisasu/Portal/pull/354#discussion_r59809244","pull_request_url":"https://api.github.com/repos/promisasu/Portal/pulls/354","_links":{"self":{"href":"https://api.github.com/repos/promisasu/Portal/pulls/comments/59809244"},"html":{"href":"https://github.com/promisasu/Portal/pull/354#discussion_r59809244"},"pull_request":{"href":"https://api.github.com/repos/promisasu/Portal/pulls/354"}}},"pull_request":{"url":"https://api.github.com/repos/promisasu/Portal/pulls/354","id":66569187,"html_url":"https://github.com/promisasu/Portal/pull/354","diff_url":"https://github.com/promisasu/Portal/pull/354.diff","patch_url":"https://github.com/promisasu/Portal/pull/354.patch","issue_url":"https://api.github.com/repos/promisasu/Portal/issues/354","number":354,"state":"open","locked":false,"title":"Merge for web app changes","user":{"login":"poojaRal","id":12092237,"avatar_url":"https://avatars.githubusercontent.com/u/12092237?v=3","gravatar_id":"","url":"https://api.github.com/users/poojaRal","html_url":"https://github.com/poojaRal","followers_url":"https://api.github.com/users/poojaRal/followers","following_url":"https://api.github.com/users/poojaRal/following{/other_user}","gists_url":"https://api.github.com/users/poojaRal/gists{/gist_id}","starred_url":"https://api.github.com/users/poojaRal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poojaRal/subscriptions","organizations_url":"https://api.github.com/users/poojaRal/orgs","repos_url":"https://api.github.com/users/poojaRal/repos","events_url":"https://api.github.com/users/poojaRal/events{/privacy}","received_events_url":"https://api.github.com/users/poojaRal/received_events","type":"User","site_admin":false},"body":"<!--\r\n1. Ensure Pull Request is targeting the `development` branch\r\n2. Provide the requested information\r\n-->\r\n**Taiga User Story**\r\nTg-597\r\n**Taiga Task(s)**\r\nTg-654\r\n**What did you change?**\r\nAdded a route for the web-application to be hosted from the node server using the path of the web-app  mentioned in config.json\r\n**How can we test?**\r\n1. run npm init\r\n2. Check that config.json file is created.\r\n3. Edit the config.json file and add the below after \"database\" object\r\n``` json\r\n\"application\": {\r\n     \"path\": \"<path pointing to the web-app part on the server\"\r\n }\r\n```\r\n4. run npm start\r\n5. Check that the node server is hosted successfully.\r\n6. Check for the route \"/promis\" and see that the web-application is hosted.","created_at":"2016-04-14T23:18:10Z","updated_at":"2016-04-14T23:36:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f2b674d935e269702941a49110ec7d384832eb71","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/promisasu/Portal/pulls/354/commits","review_comments_url":"https://api.github.com/repos/promisasu/Portal/pulls/354/comments","review_comment_url":"https://api.github.com/repos/promisasu/Portal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/promisasu/Portal/issues/354/comments","statuses_url":"https://api.github.com/repos/promisasu/Portal/statuses/5ea1a0c64194b1b1eb18089afdbfc15bbdfee675","head":{"label":"promisasu:merge-for-web-app-changes","ref":"merge-for-web-app-changes","sha":"5ea1a0c64194b1b1eb18089afdbfc15bbdfee675","user":{"login":"promisasu","id":16406149,"avatar_url":"https://avatars.githubusercontent.com/u/16406149?v=3","gravatar_id":"","url":"https://api.github.com/users/promisasu","html_url":"https://github.com/promisasu","followers_url":"https://api.github.com/users/promisasu/followers","following_url":"https://api.github.com/users/promisasu/following{/other_user}","gists_url":"https://api.github.com/users/promisasu/gists{/gist_id}","starred_url":"https://api.github.com/users/promisasu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/promisasu/subscriptions","organizations_url":"https://api.github.com/users/promisasu/orgs","repos_url":"https://api.github.com/users/promisasu/repos","events_url":"https://api.github.com/users/promisasu/events{/privacy}","received_events_url":"https://api.github.com/users/promisasu/received_events","type":"Organization","site_admin":false},"repo":{"id":42970270,"name":"Portal","full_name":"promisasu/Portal","owner":{"login":"promisasu","id":16406149,"avatar_url":"https://avatars.githubusercontent.com/u/16406149?v=3","gravatar_id":"","url":"https://api.github.com/users/promisasu","html_url":"https://github.com/promisasu","followers_url":"https://api.github.com/users/promisasu/followers","following_url":"https://api.github.com/users/promisasu/following{/other_user}","gists_url":"https://api.github.com/users/promisasu/gists{/gist_id}","starred_url":"https://api.github.com/users/promisasu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/promisasu/subscriptions","organizations_url":"https://api.github.com/users/promisasu/orgs","repos_url":"https://api.github.com/users/promisasu/repos","events_url":"https://api.github.com/users/promisasu/events{/privacy}","received_events_url":"https://api.github.com/users/promisasu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/promisasu/Portal","description":"A portal to allow clinician to view and manage Promis surveys","fork":false,"url":"https://api.github.com/repos/promisasu/Portal","forks_url":"https://api.github.com/repos/promisasu/Portal/forks","keys_url":"https://api.github.com/repos/promisasu/Portal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/promisasu/Portal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/promisasu/Portal/teams","hooks_url":"https://api.github.com/repos/promisasu/Portal/hooks","issue_events_url":"https://api.github.com/repos/promisasu/Portal/issues/events{/number}","events_url":"https://api.github.com/repos/promisasu/Portal/events","assignees_url":"https://api.github.com/repos/promisasu/Portal/assignees{/user}","branches_url":"https://api.github.com/repos/promisasu/Portal/branches{/branch}","tags_url":"https://api.github.com/repos/promisasu/Portal/tags","blobs_url":"https://api.github.com/repos/promisasu/Portal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/promisasu/Portal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/promisasu/Portal/git/refs{/sha}","trees_url":"https://api.github.com/repos/promisasu/Portal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/promisasu/Portal/statuses/{sha}","languages_url":"https://api.github.com/repos/promisasu/Portal/languages","stargazers_url":"https://api.github.com/repos/promisasu/Portal/stargazers","contributors_url":"https://api.github.com/repos/promisasu/Portal/contributors","subscribers_url":"https://api.github.com/repos/promisasu/Portal/subscribers","subscription_url":"https://api.github.com/repos/promisasu/Portal/subscription","commits_url":"https://api.github.com/repos/promisasu/Portal/commits{/sha}","git_commits_url":"https://api.github.com/repos/promisasu/Portal/git/commits{/sha}","comments_url":"https://api.github.com/repos/promisasu/Portal/comments{/number}","issue_comment_url":"https://api.github.com/repos/promisasu/Portal/issues/comments{/number}","contents_url":"https://api.github.com/repos/promisasu/Portal/contents/{+path}","compare_url":"https://api.github.com/repos/promisasu/Portal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/promisasu/Portal/merges","archive_url":"https://api.github.com/repos/promisasu/Portal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/promisasu/Portal/downloads","issues_url":"https://api.github.com/repos/promisasu/Portal/issues{/number}","pulls_url":"https://api.github.com/repos/promisasu/Portal/pulls{/number}","milestones_url":"https://api.github.com/repos/promisasu/Portal/milestones{/number}","notifications_url":"https://api.github.com/repos/promisasu/Portal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/promisasu/Portal/labels{/name}","releases_url":"https://api.github.com/repos/promisasu/Portal/releases{/id}","deployments_url":"https://api.github.com/repos/promisasu/Portal/deployments","created_at":"2015-09-23T01:10:13Z","updated_at":"2016-03-27T05:54:59Z","pushed_at":"2016-04-14T23:18:16Z","git_url":"git://github.com/promisasu/Portal.git","ssh_url":"git@github.com:promisasu/Portal.git","clone_url":"https://github.com/promisasu/Portal.git","svn_url":"https://github.com/promisasu/Portal","homepage":"","size":2247,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":15,"forks":0,"open_issues":15,"watchers":3,"default_branch":"master"}},"base":{"label":"promisasu:development","ref":"development","sha":"6a86c942e2ad832ab5a051f5db79b43ec437b69b","user":{"login":"promisasu","id":16406149,"avatar_url":"https://avatars.githubusercontent.com/u/16406149?v=3","gravatar_id":"","url":"https://api.github.com/users/promisasu","html_url":"https://github.com/promisasu","followers_url":"https://api.github.com/users/promisasu/followers","following_url":"https://api.github.com/users/promisasu/following{/other_user}","gists_url":"https://api.github.com/users/promisasu/gists{/gist_id}","starred_url":"https://api.github.com/users/promisasu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/promisasu/subscriptions","organizations_url":"https://api.github.com/users/promisasu/orgs","repos_url":"https://api.github.com/users/promisasu/repos","events_url":"https://api.github.com/users/promisasu/events{/privacy}","received_events_url":"https://api.github.com/users/promisasu/received_events","type":"Organization","site_admin":false},"repo":{"id":42970270,"name":"Portal","full_name":"promisasu/Portal","owner":{"login":"promisasu","id":16406149,"avatar_url":"https://avatars.githubusercontent.com/u/16406149?v=3","gravatar_id":"","url":"https://api.github.com/users/promisasu","html_url":"https://github.com/promisasu","followers_url":"https://api.github.com/users/promisasu/followers","following_url":"https://api.github.com/users/promisasu/following{/other_user}","gists_url":"https://api.github.com/users/promisasu/gists{/gist_id}","starred_url":"https://api.github.com/users/promisasu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/promisasu/subscriptions","organizations_url":"https://api.github.com/users/promisasu/orgs","repos_url":"https://api.github.com/users/promisasu/repos","events_url":"https://api.github.com/users/promisasu/events{/privacy}","received_events_url":"https://api.github.com/users/promisasu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/promisasu/Portal","description":"A portal to allow clinician to view and manage Promis surveys","fork":false,"url":"https://api.github.com/repos/promisasu/Portal","forks_url":"https://api.github.com/repos/promisasu/Portal/forks","keys_url":"https://api.github.com/repos/promisasu/Portal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/promisasu/Portal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/promisasu/Portal/teams","hooks_url":"https://api.github.com/repos/promisasu/Portal/hooks","issue_events_url":"https://api.github.com/repos/promisasu/Portal/issues/events{/number}","events_url":"https://api.github.com/repos/promisasu/Portal/events","assignees_url":"https://api.github.com/repos/promisasu/Portal/assignees{/user}","branches_url":"https://api.github.com/repos/promisasu/Portal/branches{/branch}","tags_url":"https://api.github.com/repos/promisasu/Portal/tags","blobs_url":"https://api.github.com/repos/promisasu/Portal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/promisasu/Portal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/promisasu/Portal/git/refs{/sha}","trees_url":"https://api.github.com/repos/promisasu/Portal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/promisasu/Portal/statuses/{sha}","languages_url":"https://api.github.com/repos/promisasu/Portal/languages","stargazers_url":"https://api.github.com/repos/promisasu/Portal/stargazers","contributors_url":"https://api.github.com/repos/promisasu/Portal/contributors","subscribers_url":"https://api.github.com/repos/promisasu/Portal/subscribers","subscription_url":"https://api.github.com/repos/promisasu/Portal/subscription","commits_url":"https://api.github.com/repos/promisasu/Portal/commits{/sha}","git_commits_url":"https://api.github.com/repos/promisasu/Portal/git/commits{/sha}","comments_url":"https://api.github.com/repos/promisasu/Portal/comments{/number}","issue_comment_url":"https://api.github.com/repos/promisasu/Portal/issues/comments{/number}","contents_url":"https://api.github.com/repos/promisasu/Portal/contents/{+path}","compare_url":"https://api.github.com/repos/promisasu/Portal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/promisasu/Portal/merges","archive_url":"https://api.github.com/repos/promisasu/Portal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/promisasu/Portal/downloads","issues_url":"https://api.github.com/repos/promisasu/Portal/issues{/number}","pulls_url":"https://api.github.com/repos/promisasu/Portal/pulls{/number}","milestones_url":"https://api.github.com/repos/promisasu/Portal/milestones{/number}","notifications_url":"https://api.github.com/repos/promisasu/Portal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/promisasu/Portal/labels{/name}","releases_url":"https://api.github.com/repos/promisasu/Portal/releases{/id}","deployments_url":"https://api.github.com/repos/promisasu/Portal/deployments","created_at":"2015-09-23T01:10:13Z","updated_at":"2016-03-27T05:54:59Z","pushed_at":"2016-04-14T23:18:16Z","git_url":"git://github.com/promisasu/Portal.git","ssh_url":"git@github.com:promisasu/Portal.git","clone_url":"https://github.com/promisasu/Portal.git","svn_url":"https://github.com/promisasu/Portal","homepage":"","size":2247,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":15,"forks":0,"open_issues":15,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/promisasu/Portal/pulls/354"},"html":{"href":"https://github.com/promisasu/Portal/pull/354"},"issue":{"href":"https://api.github.com/repos/promisasu/Portal/issues/354"},"comments":{"href":"https://api.github.com/repos/promisasu/Portal/issues/354/comments"},"review_comments":{"href":"https://api.github.com/repos/promisasu/Portal/pulls/354/comments"},"review_comment":{"href":"https://api.github.com/repos/promisasu/Portal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/promisasu/Portal/pulls/354/commits"},"statuses":{"href":"https://api.github.com/repos/promisasu/Portal/statuses/5ea1a0c64194b1b1eb18089afdbfc15bbdfee675"}}}}