{"action":"created","comment":{"url":"https://api.github.com/repos/bobbylemm/SendIt/pulls/comments/235785338","pull_request_review_id":177732680,"id":235785338,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNTc4NTMzOA==","diff_hunk":"@@ -1,46 +1,42 @@\n import express from 'express';\n-import parcelController from '../controllers/parcelcontroller';\n-import usersControllers from '../controllers/usersController';\n+import parcelController from '../controllers/ParcelController';\n+import usersControllers from '../controllers/UsersController';\n import middlewares from '../middlewares/index';\n \n-const { validateParcels, validateRegister, validateLogin, validateToken, validateSuperAdmin, validateAdmin } = middlewares;\n+const { validateParcels, validateRegister, validateLogin, validateToken, validateSuperAdmin, validateAdmin, validateLocationUpdate } = middlewares;\n+\n+const { updateParcelDestination, cancelParcelOrder, registerUser, login, createAdmin  } = usersControllers;\n+\n+const { createNewParcel, getParcelsByUser, getAllParcels, getAllParcelsBySpecificUser, updateParcelStatus, updateParcelPresentLocation } = parcelController;\n \n const router = express.Router();\n \n // this is for the home route\n router.get('/', (req, res) => {\n   res.status(200).send('welcome to SendIt');\n });\n-\n // this is the route for creating parcels\n-// CREATE PARCELS\n-router.post('/parcels', validateParcels, validateToken, parcelController.createNewParcel);\n+router.post('/parcels', validateParcels, validateToken, createNewParcel);\n // this is the route to get all parcels for a user\n-// GET ALL PARCELS\n-router.get('/parcels/user', parcelController.getParcelsByUser);\n-// this is the route to get a specific parcel\n-// GET A SPECIFIC PARCEL\n-// router.get('/parcels/:id', parcelController.getSpecificParcel);\n-// this is to change the dropofflocation of a parcel\n-// PUT IN A NEW DROPOFFLOCATION\n-router.put('/parcels/:pid/newlocation', validateToken, validateAdmin, parcelController.updateParcelPresentLocation);\n+router.get('/parcels',validateToken, getParcelsByUser);","path":"Server/routes/route.js","position":35,"original_position":35,"commit_id":"1f9dc683097153f39ed3bf72cb5c9a160afd5271","original_commit_id":"1f9dc683097153f39ed3bf72cb5c9a160afd5271","user":{"login":"saheedt","id":8380409,"node_id":"MDQ6VXNlcjgzODA0MDk=","avatar_url":"https://avatars3.githubusercontent.com/u/8380409?v=4","gravatar_id":"","url":"https://api.github.com/users/saheedt","html_url":"https://github.com/saheedt","followers_url":"https://api.github.com/users/saheedt/followers","following_url":"https://api.github.com/users/saheedt/following{/other_user}","gists_url":"https://api.github.com/users/saheedt/gists{/gist_id}","starred_url":"https://api.github.com/users/saheedt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saheedt/subscriptions","organizations_url":"https://api.github.com/users/saheedt/orgs","repos_url":"https://api.github.com/users/saheedt/repos","events_url":"https://api.github.com/users/saheedt/events{/privacy}","received_events_url":"https://api.github.com/users/saheedt/received_events","type":"User","site_admin":false},"body":"This is still wrong. This is not the route specified in the rubric to get all parcels belonging to a user.","created_at":"2018-11-22T16:49:32Z","updated_at":"2018-11-22T16:49:32Z","html_url":"https://github.com/bobbylemm/SendIt/pull/39#discussion_r235785338","pull_request_url":"https://api.github.com/repos/bobbylemm/SendIt/pulls/39","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/bobbylemm/SendIt/pulls/comments/235785338"},"html":{"href":"https://github.com/bobbylemm/SendIt/pull/39#discussion_r235785338"},"pull_request":{"href":"https://api.github.com/repos/bobbylemm/SendIt/pulls/39"}}},"pull_request":{"url":"https://api.github.com/repos/bobbylemm/SendIt/pulls/39","id":233018380,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMzMDE4Mzgw","html_url":"https://github.com/bobbylemm/SendIt/pull/39","diff_url":"https://github.com/bobbylemm/SendIt/pull/39.diff","patch_url":"https://github.com/bobbylemm/SendIt/pull/39.patch","issue_url":"https://api.github.com/repos/bobbylemm/SendIt/issues/39","number":39,"state":"open","locked":false,"title":"Ft create test api db 162123750","user":{"login":"bobbylemm","id":38977569,"node_id":"MDQ6VXNlcjM4OTc3NTY5","avatar_url":"https://avatars0.githubusercontent.com/u/38977569?v=4","gravatar_id":"","url":"https://api.github.com/users/bobbylemm","html_url":"https://github.com/bobbylemm","followers_url":"https://api.github.com/users/bobbylemm/followers","following_url":"https://api.github.com/users/bobbylemm/following{/other_user}","gists_url":"https://api.github.com/users/bobbylemm/gists{/gist_id}","starred_url":"https://api.github.com/users/bobbylemm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobbylemm/subscriptions","organizations_url":"https://api.github.com/users/bobbylemm/orgs","repos_url":"https://api.github.com/users/bobbylemm/repos","events_url":"https://api.github.com/users/bobbylemm/events{/privacy}","received_events_url":"https://api.github.com/users/bobbylemm/received_events","type":"User","site_admin":false},"body":"WHAT DOES THIS PR DO?\r\nimplements all the feedback on the previous PR.\r\n\r\nWHAT ARE THE RELEVANT PT STORIES ID?\r\n#162123750","created_at":"2018-11-22T15:38:06Z","updated_at":"2018-11-22T16:49:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"900d5d567e73ebdb7777266905665d8fa562f556","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/bobbylemm/SendIt/pulls/39/commits","review_comments_url":"https://api.github.com/repos/bobbylemm/SendIt/pulls/39/comments","review_comment_url":"https://api.github.com/repos/bobbylemm/SendIt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bobbylemm/SendIt/issues/39/comments","statuses_url":"https://api.github.com/repos/bobbylemm/SendIt/statuses/1f9dc683097153f39ed3bf72cb5c9a160afd5271","head":{"label":"bobbylemm:ft-create-test-api-db-162123750","ref":"ft-create-test-api-db-162123750","sha":"1f9dc683097153f39ed3bf72cb5c9a160afd5271","user":{"login":"bobbylemm","id":38977569,"node_id":"MDQ6VXNlcjM4OTc3NTY5","avatar_url":"https://avatars0.githubusercontent.com/u/38977569?v=4","gravatar_id":"","url":"https://api.github.com/users/bobbylemm","html_url":"https://github.com/bobbylemm","followers_url":"https://api.github.com/users/bobbylemm/followers","following_url":"https://api.github.com/users/bobbylemm/following{/other_user}","gists_url":"https://api.github.com/users/bobbylemm/gists{/gist_id}","starred_url":"https://api.github.com/users/bobbylemm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobbylemm/subscriptions","organizations_url":"https://api.github.com/users/bobbylemm/orgs","repos_url":"https://api.github.com/users/bobbylemm/repos","events_url":"https://api.github.com/users/bobbylemm/events{/privacy}","received_events_url":"https://api.github.com/users/bobbylemm/received_events","type":"User","site_admin":false},"repo":{"id":155230128,"node_id":"MDEwOlJlcG9zaXRvcnkxNTUyMzAxMjg=","name":"SendIt","full_name":"bobbylemm/SendIt","private":false,"owner":{"login":"bobbylemm","id":38977569,"node_id":"MDQ6VXNlcjM4OTc3NTY5","avatar_url":"https://avatars0.githubusercontent.com/u/38977569?v=4","gravatar_id":"","url":"https://api.github.com/users/bobbylemm","html_url":"https://github.com/bobbylemm","followers_url":"https://api.github.com/users/bobbylemm/followers","following_url":"https://api.github.com/users/bobbylemm/following{/other_user}","gists_url":"https://api.github.com/users/bobbylemm/gists{/gist_id}","starred_url":"https://api.github.com/users/bobbylemm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobbylemm/subscriptions","organizations_url":"https://api.github.com/users/bobbylemm/orgs","repos_url":"https://api.github.com/users/bobbylemm/repos","events_url":"https://api.github.com/users/bobbylemm/events{/privacy}","received_events_url":"https://api.github.com/users/bobbylemm/received_events","type":"User","site_admin":false},"html_url":"https://github.com/bobbylemm/SendIt","description":"SendIt is a courier service that helps users deliver parcels to different destinations, SendIt provides courier quotes based on weight categories","fork":false,"url":"https://api.github.com/repos/bobbylemm/SendIt","forks_url":"https://api.github.com/repos/bobbylemm/SendIt/forks","keys_url":"https://api.github.com/repos/bobbylemm/SendIt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bobbylemm/SendIt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bobbylemm/SendIt/teams","hooks_url":"https://api.github.com/repos/bobbylemm/SendIt/hooks","issue_events_url":"https://api.github.com/repos/bobbylemm/SendIt/issues/events{/number}","events_url":"https://api.github.com/repos/bobbylemm/SendIt/events","assignees_url":"https://api.github.com/repos/bobbylemm/SendIt/assignees{/user}","branches_url":"https://api.github.com/repos/bobbylemm/SendIt/branches{/branch}","tags_url":"https://api.github.com/repos/bobbylemm/SendIt/tags","blobs_url":"https://api.github.com/repos/bobbylemm/SendIt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bobbylemm/SendIt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bobbylemm/SendIt/git/refs{/sha}","trees_url":"https://api.github.com/repos/bobbylemm/SendIt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bobbylemm/SendIt/statuses/{sha}","languages_url":"https://api.github.com/repos/bobbylemm/SendIt/languages","stargazers_url":"https://api.github.com/repos/bobbylemm/SendIt/stargazers","contributors_url":"https://api.github.com/repos/bobbylemm/SendIt/contributors","subscribers_url":"https://api.github.com/repos/bobbylemm/SendIt/subscribers","subscription_url":"https://api.github.com/repos/bobbylemm/SendIt/subscription","commits_url":"https://api.github.com/repos/bobbylemm/SendIt/commits{/sha}","git_commits_url":"https://api.github.com/repos/bobbylemm/SendIt/git/commits{/sha}","comments_url":"https://api.github.com/repos/bobbylemm/SendIt/comments{/number}","issue_comment_url":"https://api.github.com/repos/bobbylemm/SendIt/issues/comments{/number}","contents_url":"https://api.github.com/repos/bobbylemm/SendIt/contents/{+path}","compare_url":"https://api.github.com/repos/bobbylemm/SendIt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bobbylemm/SendIt/merges","archive_url":"https://api.github.com/repos/bobbylemm/SendIt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bobbylemm/SendIt/downloads","issues_url":"https://api.github.com/repos/bobbylemm/SendIt/issues{/number}","pulls_url":"https://api.github.com/repos/bobbylemm/SendIt/pulls{/number}","milestones_url":"https://api.github.com/repos/bobbylemm/SendIt/milestones{/number}","notifications_url":"https://api.github.com/repos/bobbylemm/SendIt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bobbylemm/SendIt/labels{/name}","releases_url":"https://api.github.com/repos/bobbylemm/SendIt/releases{/id}","deployments_url":"https://api.github.com/repos/bobbylemm/SendIt/deployments","created_at":"2018-10-29T14:55:03Z","updated_at":"2018-10-29T14:55:06Z","pushed_at":"2018-11-22T16:10:47Z","git_url":"git://github.com/bobbylemm/SendIt.git","ssh_url":"git@github.com:bobbylemm/SendIt.git","clone_url":"https://github.com/bobbylemm/SendIt.git","svn_url":"https://github.com/bobbylemm/SendIt","homepage":null,"size":20310,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"bobbylemm:develop","ref":"develop","sha":"7687ced857a1a60e573a0569a4361a9deaaba90d","user":{"login":"bobbylemm","id":38977569,"node_id":"MDQ6VXNlcjM4OTc3NTY5","avatar_url":"https://avatars0.githubusercontent.com/u/38977569?v=4","gravatar_id":"","url":"https://api.github.com/users/bobbylemm","html_url":"https://github.com/bobbylemm","followers_url":"https://api.github.com/users/bobbylemm/followers","following_url":"https://api.github.com/users/bobbylemm/following{/other_user}","gists_url":"https://api.github.com/users/bobbylemm/gists{/gist_id}","starred_url":"https://api.github.com/users/bobbylemm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobbylemm/subscriptions","organizations_url":"https://api.github.com/users/bobbylemm/orgs","repos_url":"https://api.github.com/users/bobbylemm/repos","events_url":"https://api.github.com/users/bobbylemm/events{/privacy}","received_events_url":"https://api.github.com/users/bobbylemm/received_events","type":"User","site_admin":false},"repo":{"id":155230128,"node_id":"MDEwOlJlcG9zaXRvcnkxNTUyMzAxMjg=","name":"SendIt","full_name":"bobbylemm/SendIt","private":false,"owner":{"login":"bobbylemm","id":38977569,"node_id":"MDQ6VXNlcjM4OTc3NTY5","avatar_url":"https://avatars0.githubusercontent.com/u/38977569?v=4","gravatar_id":"","url":"https://api.github.com/users/bobbylemm","html_url":"https://github.com/bobbylemm","followers_url":"https://api.github.com/users/bobbylemm/followers","following_url":"https://api.github.com/users/bobbylemm/following{/other_user}","gists_url":"https://api.github.com/users/bobbylemm/gists{/gist_id}","starred_url":"https://api.github.com/users/bobbylemm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobbylemm/subscriptions","organizations_url":"https://api.github.com/users/bobbylemm/orgs","repos_url":"https://api.github.com/users/bobbylemm/repos","events_url":"https://api.github.com/users/bobbylemm/events{/privacy}","received_events_url":"https://api.github.com/users/bobbylemm/received_events","type":"User","site_admin":false},"html_url":"https://github.com/bobbylemm/SendIt","description":"SendIt is a courier service that helps users deliver parcels to different destinations, SendIt provides courier quotes based on weight categories","fork":false,"url":"https://api.github.com/repos/bobbylemm/SendIt","forks_url":"https://api.github.com/repos/bobbylemm/SendIt/forks","keys_url":"https://api.github.com/repos/bobbylemm/SendIt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bobbylemm/SendIt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bobbylemm/SendIt/teams","hooks_url":"https://api.github.com/repos/bobbylemm/SendIt/hooks","issue_events_url":"https://api.github.com/repos/bobbylemm/SendIt/issues/events{/number}","events_url":"https://api.github.com/repos/bobbylemm/SendIt/events","assignees_url":"https://api.github.com/repos/bobbylemm/SendIt/assignees{/user}","branches_url":"https://api.github.com/repos/bobbylemm/SendIt/branches{/branch}","tags_url":"https://api.github.com/repos/bobbylemm/SendIt/tags","blobs_url":"https://api.github.com/repos/bobbylemm/SendIt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bobbylemm/SendIt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bobbylemm/SendIt/git/refs{/sha}","trees_url":"https://api.github.com/repos/bobbylemm/SendIt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bobbylemm/SendIt/statuses/{sha}","languages_url":"https://api.github.com/repos/bobbylemm/SendIt/languages","stargazers_url":"https://api.github.com/repos/bobbylemm/SendIt/stargazers","contributors_url":"https://api.github.com/repos/bobbylemm/SendIt/contributors","subscribers_url":"https://api.github.com/repos/bobbylemm/SendIt/subscribers","subscription_url":"https://api.github.com/repos/bobbylemm/SendIt/subscription","commits_url":"https://api.github.com/repos/bobbylemm/SendIt/commits{/sha}","git_commits_url":"https://api.github.com/repos/bobbylemm/SendIt/git/commits{/sha}","comments_url":"https://api.github.com/repos/bobbylemm/SendIt/comments{/number}","issue_comment_url":"https://api.github.com/repos/bobbylemm/SendIt/issues/comments{/number}","contents_url":"https://api.github.com/repos/bobbylemm/SendIt/contents/{+path}","compare_url":"https://api.github.com/repos/bobbylemm/SendIt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bobbylemm/SendIt/merges","archive_url":"https://api.github.com/repos/bobbylemm/SendIt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bobbylemm/SendIt/downloads","issues_url":"https://api.github.com/repos/bobbylemm/SendIt/issues{/number}","pulls_url":"https://api.github.com/repos/bobbylemm/SendIt/pulls{/number}","milestones_url":"https://api.github.com/repos/bobbylemm/SendIt/milestones{/number}","notifications_url":"https://api.github.com/repos/bobbylemm/SendIt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bobbylemm/SendIt/labels{/name}","releases_url":"https://api.github.com/repos/bobbylemm/SendIt/releases{/id}","deployments_url":"https://api.github.com/repos/bobbylemm/SendIt/deployments","created_at":"2018-10-29T14:55:03Z","updated_at":"2018-10-29T14:55:06Z","pushed_at":"2018-11-22T16:10:47Z","git_url":"git://github.com/bobbylemm/SendIt.git","ssh_url":"git@github.com:bobbylemm/SendIt.git","clone_url":"https://github.com/bobbylemm/SendIt.git","svn_url":"https://github.com/bobbylemm/SendIt","homepage":null,"size":20310,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bobbylemm/SendIt/pulls/39"},"html":{"href":"https://github.com/bobbylemm/SendIt/pull/39"},"issue":{"href":"https://api.github.com/repos/bobbylemm/SendIt/issues/39"},"comments":{"href":"https://api.github.com/repos/bobbylemm/SendIt/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/bobbylemm/SendIt/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/bobbylemm/SendIt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bobbylemm/SendIt/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/bobbylemm/SendIt/statuses/1f9dc683097153f39ed3bf72cb5c9a160afd5271"}},"author_association":"OWNER"}}
{"actor":{"display_login":"saheedt"}}