{"action":"created","comment":{"url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/pulls/comments/170009078","pull_request_review_id":98618464,"id":170009078,"diff_hunk":"@@ -0,0 +1,90 @@\n+var express = require('express');\n+var app = express();\n+var port = 3000;\n+var cors = require('cors')\n+var task = require(\"./task\");\n+app.use(cors());\n+// app.use(express.static(__dirname + '../html'));\n+// app.use(express.static(__dirname + '../js'));\n+// app.use(express.static(__dirname + '../node_modules'));\n+\n+\n+//express\n+var bodyParser = require(\"body-parser\");\n+app.use(bodyParser.json());\n+\n+app.post(\"/todo\", function(req, res,next) {\n+          task.create({\"title\": req.body.title,\"dueDate\": req.body.dueDate,\"address\": req.body.address,\"lat\": req.body.lat,\"lng\": req.body.lng}, function(err, task) {\n+            if (err) {\n+              res.status(500);\n+              res.send(err);\n+            } else {\n+              res.status(201);\n+              res.send(task);\n+            }\n+          });\n+})\n+\n+app.delete(\"/todo/:id\", function(req, res,next) {\n+  var id = '' + req.params.id;\n+  console.log(\"here\");\n+  task.remove({\n+    \"_id\": id\n+  }, function(err, result) {\n+    if (err) {\n+      res.status(500);\n+","path":"server/server.js","position":36,"original_position":36,"commit_id":"448be871f43db6e56b3e0098badfa4715f345cdd","original_commit_id":"448be871f43db6e56b3e0098badfa4715f345cdd","user":{"login":"lbraun","id":294776,"avatar_url":"https://avatars1.githubusercontent.com/u/294776?v=4","gravatar_id":"","url":"https://api.github.com/users/lbraun","html_url":"https://github.com/lbraun","followers_url":"https://api.github.com/users/lbraun/followers","following_url":"https://api.github.com/users/lbraun/following{/other_user}","gists_url":"https://api.github.com/users/lbraun/gists{/gist_id}","starred_url":"https://api.github.com/users/lbraun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbraun/subscriptions","organizations_url":"https://api.github.com/users/lbraun/orgs","repos_url":"https://api.github.com/users/lbraun/repos","events_url":"https://api.github.com/users/lbraun/events{/privacy}","received_events_url":"https://api.github.com/users/lbraun/received_events","type":"User","site_admin":false},"body":"Remove this blank line for consistency?","created_at":"2018-02-22T16:11:25Z","updated_at":"2018-02-22T16:18:09Z","html_url":"https://github.com/lbraun/leaflet-angular-exploration/pull/10#discussion_r170009078","pull_request_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/pulls/10","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/pulls/comments/170009078"},"html":{"href":"https://github.com/lbraun/leaflet-angular-exploration/pull/10#discussion_r170009078"},"pull_request":{"href":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/pulls/10","id":170788700,"html_url":"https://github.com/lbraun/leaflet-angular-exploration/pull/10","diff_url":"https://github.com/lbraun/leaflet-angular-exploration/pull/10.diff","patch_url":"https://github.com/lbraun/leaflet-angular-exploration/pull/10.patch","issue_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/issues/10","number":10,"state":"open","locked":false,"title":"n index.html","user":{"login":"brhanebt","id":33482700,"avatar_url":"https://avatars0.githubusercontent.com/u/33482700?v=4","gravatar_id":"","url":"https://api.github.com/users/brhanebt","html_url":"https://github.com/brhanebt","followers_url":"https://api.github.com/users/brhanebt/followers","following_url":"https://api.github.com/users/brhanebt/following{/other_user}","gists_url":"https://api.github.com/users/brhanebt/gists{/gist_id}","starred_url":"https://api.github.com/users/brhanebt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brhanebt/subscriptions","organizations_url":"https://api.github.com/users/brhanebt/orgs","repos_url":"https://api.github.com/users/brhanebt/repos","events_url":"https://api.github.com/users/brhanebt/events{/privacy}","received_events_url":"https://api.github.com/users/brhanebt/received_events","type":"User","site_admin":false},"body":"Add id btnClose to the modal close button\r\n\r\nIn server folder\r\n\r\nAdd server side scripts connection.js for mongoose connection\r\nAdd task.js for model of the mytasks collection in todo document in\r\nmongodb\r\nAdd server.js for http post/get/put and delete operations.\r\n\r\nIn js folder\r\n\r\nAdd http get operation to load tasks from database\r\nAdd onclick event listener function and http post to addMarker function\r\nAdd http delete and http get to load the latest to remove function\r\nAdd onclick event, new updated marker variable and http put to the Info\r\n    function","created_at":"2018-02-22T15:51:23Z","updated_at":"2018-02-22T16:18:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/pulls/10/commits","review_comments_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/pulls/10/comments","review_comment_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/issues/10/comments","statuses_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/statuses/448be871f43db6e56b3e0098badfa4715f345cdd","head":{"label":"lbraun:add-server-side","ref":"add-server-side","sha":"448be871f43db6e56b3e0098badfa4715f345cdd","user":{"login":"lbraun","id":294776,"avatar_url":"https://avatars1.githubusercontent.com/u/294776?v=4","gravatar_id":"","url":"https://api.github.com/users/lbraun","html_url":"https://github.com/lbraun","followers_url":"https://api.github.com/users/lbraun/followers","following_url":"https://api.github.com/users/lbraun/following{/other_user}","gists_url":"https://api.github.com/users/lbraun/gists{/gist_id}","starred_url":"https://api.github.com/users/lbraun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbraun/subscriptions","organizations_url":"https://api.github.com/users/lbraun/orgs","repos_url":"https://api.github.com/users/lbraun/repos","events_url":"https://api.github.com/users/lbraun/events{/privacy}","received_events_url":"https://api.github.com/users/lbraun/received_events","type":"User","site_admin":false},"repo":{"id":119367686,"name":"leaflet-angular-exploration","full_name":"lbraun/leaflet-angular-exploration","owner":{"login":"lbraun","id":294776,"avatar_url":"https://avatars1.githubusercontent.com/u/294776?v=4","gravatar_id":"","url":"https://api.github.com/users/lbraun","html_url":"https://github.com/lbraun","followers_url":"https://api.github.com/users/lbraun/followers","following_url":"https://api.github.com/users/lbraun/following{/other_user}","gists_url":"https://api.github.com/users/lbraun/gists{/gist_id}","starred_url":"https://api.github.com/users/lbraun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbraun/subscriptions","organizations_url":"https://api.github.com/users/lbraun/orgs","repos_url":"https://api.github.com/users/lbraun/repos","events_url":"https://api.github.com/users/lbraun/events{/privacy}","received_events_url":"https://api.github.com/users/lbraun/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lbraun/leaflet-angular-exploration","description":"An exploration of the possibilities when combining leaflet.js with angular.js","fork":false,"url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration","forks_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/forks","keys_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/teams","hooks_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/hooks","issue_events_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/issues/events{/number}","events_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/events","assignees_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/assignees{/user}","branches_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/branches{/branch}","tags_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/tags","blobs_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/git/refs{/sha}","trees_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/statuses/{sha}","languages_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/languages","stargazers_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/stargazers","contributors_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/contributors","subscribers_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/subscribers","subscription_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/subscription","commits_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/commits{/sha}","git_commits_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/git/commits{/sha}","comments_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/comments{/number}","issue_comment_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/issues/comments{/number}","contents_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/contents/{+path}","compare_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/merges","archive_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/downloads","issues_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/issues{/number}","pulls_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/pulls{/number}","milestones_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/milestones{/number}","notifications_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/labels{/name}","releases_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/releases{/id}","deployments_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/deployments","created_at":"2018-01-29T10:24:54Z","updated_at":"2018-01-29T10:25:11Z","pushed_at":"2018-02-22T16:13:34Z","git_url":"git://github.com/lbraun/leaflet-angular-exploration.git","ssh_url":"git@github.com:lbraun/leaflet-angular-exploration.git","clone_url":"https://github.com/lbraun/leaflet-angular-exploration.git","svn_url":"https://github.com/lbraun/leaflet-angular-exploration","homepage":null,"size":21,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":7,"license":null,"forks":1,"open_issues":7,"watchers":0,"default_branch":"master"}},"base":{"label":"lbraun:master","ref":"master","sha":"83e7f2c157115125fab5159e0b337f8c11daa2ca","user":{"login":"lbraun","id":294776,"avatar_url":"https://avatars1.githubusercontent.com/u/294776?v=4","gravatar_id":"","url":"https://api.github.com/users/lbraun","html_url":"https://github.com/lbraun","followers_url":"https://api.github.com/users/lbraun/followers","following_url":"https://api.github.com/users/lbraun/following{/other_user}","gists_url":"https://api.github.com/users/lbraun/gists{/gist_id}","starred_url":"https://api.github.com/users/lbraun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbraun/subscriptions","organizations_url":"https://api.github.com/users/lbraun/orgs","repos_url":"https://api.github.com/users/lbraun/repos","events_url":"https://api.github.com/users/lbraun/events{/privacy}","received_events_url":"https://api.github.com/users/lbraun/received_events","type":"User","site_admin":false},"repo":{"id":119367686,"name":"leaflet-angular-exploration","full_name":"lbraun/leaflet-angular-exploration","owner":{"login":"lbraun","id":294776,"avatar_url":"https://avatars1.githubusercontent.com/u/294776?v=4","gravatar_id":"","url":"https://api.github.com/users/lbraun","html_url":"https://github.com/lbraun","followers_url":"https://api.github.com/users/lbraun/followers","following_url":"https://api.github.com/users/lbraun/following{/other_user}","gists_url":"https://api.github.com/users/lbraun/gists{/gist_id}","starred_url":"https://api.github.com/users/lbraun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbraun/subscriptions","organizations_url":"https://api.github.com/users/lbraun/orgs","repos_url":"https://api.github.com/users/lbraun/repos","events_url":"https://api.github.com/users/lbraun/events{/privacy}","received_events_url":"https://api.github.com/users/lbraun/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lbraun/leaflet-angular-exploration","description":"An exploration of the possibilities when combining leaflet.js with angular.js","fork":false,"url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration","forks_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/forks","keys_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/teams","hooks_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/hooks","issue_events_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/issues/events{/number}","events_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/events","assignees_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/assignees{/user}","branches_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/branches{/branch}","tags_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/tags","blobs_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/git/refs{/sha}","trees_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/statuses/{sha}","languages_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/languages","stargazers_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/stargazers","contributors_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/contributors","subscribers_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/subscribers","subscription_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/subscription","commits_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/commits{/sha}","git_commits_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/git/commits{/sha}","comments_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/comments{/number}","issue_comment_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/issues/comments{/number}","contents_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/contents/{+path}","compare_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/merges","archive_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/downloads","issues_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/issues{/number}","pulls_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/pulls{/number}","milestones_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/milestones{/number}","notifications_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/labels{/name}","releases_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/releases{/id}","deployments_url":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/deployments","created_at":"2018-01-29T10:24:54Z","updated_at":"2018-01-29T10:25:11Z","pushed_at":"2018-02-22T16:13:34Z","git_url":"git://github.com/lbraun/leaflet-angular-exploration.git","ssh_url":"git@github.com:lbraun/leaflet-angular-exploration.git","clone_url":"https://github.com/lbraun/leaflet-angular-exploration.git","svn_url":"https://github.com/lbraun/leaflet-angular-exploration","homepage":null,"size":21,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":7,"license":null,"forks":1,"open_issues":7,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/pulls/10"},"html":{"href":"https://github.com/lbraun/leaflet-angular-exploration/pull/10"},"issue":{"href":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/issues/10"},"comments":{"href":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/lbraun/leaflet-angular-exploration/statuses/448be871f43db6e56b3e0098badfa4715f345cdd"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"lbraun"}}