{"action":"created","comment":{"url":"https://api.github.com/repos/idevelopment/Hcrm/pulls/comments/71755435","id":71755435,"diff_hunk":"@@ -11,24 +11,110 @@\n |\n */\n \n-Route::get('/', 'HomeController@index')->name('index');\n-Route::auth();\n+// API ROUTES.\n+Route::group(['prefix' => 'api/v1'], function () {\n+    Route::get('customers', 'ApiCustomerController@index');\n+    Route::get('customers/{id}', 'ApiCustomerController@show');\n+    Route::put('customers/{id}', 'ApiCustomerController@update');\n+    Route::post('customers', 'ApiCustomerController@insert');\n+    Route::patch('customers/{id}', 'ApiCustomerController@update');\n+    Route::delete('customers/{id}', 'ApiCustomerController@destroy');\n+});\n \n+// WEB ROUTES.\n+// TODO needs testing\n+Route::get('/', 'HomeController@index')->name('index');\n Route::get('/home', 'HomeController@index')->name('index');\n+Route::auth();\n \n // Department routes.\n Route::get('departments', 'DepartmentController@index')->name('department.index');\n-Route::post('/departments/create', 'DepartmentController@create')->name('department.store');\n-Route::get('/departments/update/{id}', 'DepartmentController@update')->name('department.update');\n+Route::get('/departments/search', 'DepartmentController@index')->name('department.search');\n+Route::get('/departments/update/{id}', 'DepartmentController@edit')->name('department.edit');\n+Route::get('/departments/show/{id}', 'DepartmentController@show')->name('department.specific');\n+Route::get('/departments/new', 'DepartmentController@register')->name('department.register');\n Route::get('/departments/delete/{id}', 'DepartmentController@destroy')->name('department.destroy');\n+Route::post('/departments/create', 'DepartmentController@create')->name('department.store');\n+Route::post('/departments/update/{id}', 'DepartmentController@update')->name('department.update');\n+\n+// Products routing\n+// TODO: needs testing\n+Route::get('/products', 'ProductsController@index')->name('products.index');\n+Route::post('/products/category/new', 'ProductsController@storeCategory')->name('category.insert');\n+\n+\n+// Inbound email routes.\n+// TODO: Needs testing.\n+Route::get('emails', 'InboundEmail@index')->name('emails.index');\n+Route::get('/emails/search', 'InboundEmail@index')->name('emails.search');\n+Route::get('/emails/show/{id}', 'InboundEmail@show')->name('emails.specific');\n \n // Account info routes.\n-Route::get('/account/update', 'AccountController@Account')->name('account.info');\n-Route::post('/account/update/information', 'AccountController@updateAccountInformation')->name('account.update.info');\n+// TODO: Needs testing.\n+Route::get('/account/update/{tab}', 'AccountController@Account')->name('account.info');\n+Route::get('/account/api/removeKey/{id}', 'AccountController@removeApiKey')->name('account.api.destroy');\n Route::post('/account/update/password', 'AccountController@updateAccountSecurity')->name('account.update.pass');\n+Route::post('/account/api/newKey', 'AccountController@createApiKey')->name('account.create.api');\n+Route::post('/account/update/information', 'AccountController@updateAccountInformation')->name('account.update.info');\n+\n+// Staff routes\n+Route::get('/setup/staff',  'StaffController@index')->name('staff.index');\n+Route::get('/staff/create',  'StaffController@register')->name('staff.register');","path":"app/Http/routes.php","position":58,"original_position":58,"commit_id":"a9e0a4567b7fd14f66bc96e4cdaaecfa9f6a366c","original_commit_id":"a9e0a4567b7fd14f66bc96e4cdaaecfa9f6a366c","user":{"login":"ghermans","id":1594411,"avatar_url":"https://avatars.githubusercontent.com/u/1594411?v=3","gravatar_id":"","url":"https://api.github.com/users/ghermans","html_url":"https://github.com/ghermans","followers_url":"https://api.github.com/users/ghermans/followers","following_url":"https://api.github.com/users/ghermans/following{/other_user}","gists_url":"https://api.github.com/users/ghermans/gists{/gist_id}","starred_url":"https://api.github.com/users/ghermans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghermans/subscriptions","organizations_url":"https://api.github.com/users/ghermans/orgs","repos_url":"https://api.github.com/users/ghermans/repos","events_url":"https://api.github.com/users/ghermans/events{/privacy}","received_events_url":"https://api.github.com/users/ghermans/received_events","type":"User","site_admin":false},"body":"__[code_sniffer]__\n* Expected 1 space after comma in function call; 2 found","created_at":"2016-07-21T18:00:57Z","updated_at":"2016-07-21T18:00:57Z","html_url":"https://github.com/idevelopment/Hcrm/pull/122#discussion_r71755435","pull_request_url":"https://api.github.com/repos/idevelopment/Hcrm/pulls/122","_links":{"self":{"href":"https://api.github.com/repos/idevelopment/Hcrm/pulls/comments/71755435"},"html":{"href":"https://github.com/idevelopment/Hcrm/pull/122#discussion_r71755435"},"pull_request":{"href":"https://api.github.com/repos/idevelopment/Hcrm/pulls/122"}}},"pull_request":{"url":"https://api.github.com/repos/idevelopment/Hcrm/pulls/122","id":78351906,"html_url":"https://github.com/idevelopment/Hcrm/pull/122","diff_url":"https://github.com/idevelopment/Hcrm/pull/122.diff","patch_url":"https://github.com/idevelopment/Hcrm/pull/122.patch","issue_url":"https://api.github.com/repos/idevelopment/Hcrm/issues/122","number":122,"state":"closed","locked":false,"title":"Scss fix","user":{"login":"Tjoosten","id":5157609,"avatar_url":"https://avatars.githubusercontent.com/u/5157609?v=3","gravatar_id":"","url":"https://api.github.com/users/Tjoosten","html_url":"https://github.com/Tjoosten","followers_url":"https://api.github.com/users/Tjoosten/followers","following_url":"https://api.github.com/users/Tjoosten/following{/other_user}","gists_url":"https://api.github.com/users/Tjoosten/gists{/gist_id}","starred_url":"https://api.github.com/users/Tjoosten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tjoosten/subscriptions","organizations_url":"https://api.github.com/users/Tjoosten/orgs","repos_url":"https://api.github.com/users/Tjoosten/repos","events_url":"https://api.github.com/users/Tjoosten/events{/privacy}","received_events_url":"https://api.github.com/users/Tjoosten/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-21T17:02:33Z","updated_at":"2016-07-21T18:00:57Z","closed_at":"2016-07-21T17:02:43Z","merged_at":null,"merge_commit_sha":"a138cb728bd279b2c74a911d00df6d9846a551ca","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/idevelopment/Hcrm/pulls/122/commits","review_comments_url":"https://api.github.com/repos/idevelopment/Hcrm/pulls/122/comments","review_comment_url":"https://api.github.com/repos/idevelopment/Hcrm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/idevelopment/Hcrm/issues/122/comments","statuses_url":"https://api.github.com/repos/idevelopment/Hcrm/statuses/a9e0a4567b7fd14f66bc96e4cdaaecfa9f6a366c","head":{"label":"idevelopment:scss-fix","ref":"scss-fix","sha":"a9e0a4567b7fd14f66bc96e4cdaaecfa9f6a366c","user":{"login":"idevelopment","id":14967398,"avatar_url":"https://avatars.githubusercontent.com/u/14967398?v=3","gravatar_id":"","url":"https://api.github.com/users/idevelopment","html_url":"https://github.com/idevelopment","followers_url":"https://api.github.com/users/idevelopment/followers","following_url":"https://api.github.com/users/idevelopment/following{/other_user}","gists_url":"https://api.github.com/users/idevelopment/gists{/gist_id}","starred_url":"https://api.github.com/users/idevelopment/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idevelopment/subscriptions","organizations_url":"https://api.github.com/users/idevelopment/orgs","repos_url":"https://api.github.com/users/idevelopment/repos","events_url":"https://api.github.com/users/idevelopment/events{/privacy}","received_events_url":"https://api.github.com/users/idevelopment/received_events","type":"Organization","site_admin":false},"repo":{"id":61381083,"name":"Hcrm","full_name":"idevelopment/Hcrm","owner":{"login":"idevelopment","id":14967398,"avatar_url":"https://avatars.githubusercontent.com/u/14967398?v=3","gravatar_id":"","url":"https://api.github.com/users/idevelopment","html_url":"https://github.com/idevelopment","followers_url":"https://api.github.com/users/idevelopment/followers","following_url":"https://api.github.com/users/idevelopment/following{/other_user}","gists_url":"https://api.github.com/users/idevelopment/gists{/gist_id}","starred_url":"https://api.github.com/users/idevelopment/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idevelopment/subscriptions","organizations_url":"https://api.github.com/users/idevelopment/orgs","repos_url":"https://api.github.com/users/idevelopment/repos","events_url":"https://api.github.com/users/idevelopment/events{/privacy}","received_events_url":"https://api.github.com/users/idevelopment/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/idevelopment/Hcrm","description":"Open-source CRM for hosting companies ","fork":false,"url":"https://api.github.com/repos/idevelopment/Hcrm","forks_url":"https://api.github.com/repos/idevelopment/Hcrm/forks","keys_url":"https://api.github.com/repos/idevelopment/Hcrm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/idevelopment/Hcrm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/idevelopment/Hcrm/teams","hooks_url":"https://api.github.com/repos/idevelopment/Hcrm/hooks","issue_events_url":"https://api.github.com/repos/idevelopment/Hcrm/issues/events{/number}","events_url":"https://api.github.com/repos/idevelopment/Hcrm/events","assignees_url":"https://api.github.com/repos/idevelopment/Hcrm/assignees{/user}","branches_url":"https://api.github.com/repos/idevelopment/Hcrm/branches{/branch}","tags_url":"https://api.github.com/repos/idevelopment/Hcrm/tags","blobs_url":"https://api.github.com/repos/idevelopment/Hcrm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/idevelopment/Hcrm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/idevelopment/Hcrm/git/refs{/sha}","trees_url":"https://api.github.com/repos/idevelopment/Hcrm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/idevelopment/Hcrm/statuses/{sha}","languages_url":"https://api.github.com/repos/idevelopment/Hcrm/languages","stargazers_url":"https://api.github.com/repos/idevelopment/Hcrm/stargazers","contributors_url":"https://api.github.com/repos/idevelopment/Hcrm/contributors","subscribers_url":"https://api.github.com/repos/idevelopment/Hcrm/subscribers","subscription_url":"https://api.github.com/repos/idevelopment/Hcrm/subscription","commits_url":"https://api.github.com/repos/idevelopment/Hcrm/commits{/sha}","git_commits_url":"https://api.github.com/repos/idevelopment/Hcrm/git/commits{/sha}","comments_url":"https://api.github.com/repos/idevelopment/Hcrm/comments{/number}","issue_comment_url":"https://api.github.com/repos/idevelopment/Hcrm/issues/comments{/number}","contents_url":"https://api.github.com/repos/idevelopment/Hcrm/contents/{+path}","compare_url":"https://api.github.com/repos/idevelopment/Hcrm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/idevelopment/Hcrm/merges","archive_url":"https://api.github.com/repos/idevelopment/Hcrm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/idevelopment/Hcrm/downloads","issues_url":"https://api.github.com/repos/idevelopment/Hcrm/issues{/number}","pulls_url":"https://api.github.com/repos/idevelopment/Hcrm/pulls{/number}","milestones_url":"https://api.github.com/repos/idevelopment/Hcrm/milestones{/number}","notifications_url":"https://api.github.com/repos/idevelopment/Hcrm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/idevelopment/Hcrm/labels{/name}","releases_url":"https://api.github.com/repos/idevelopment/Hcrm/releases{/id}","deployments_url":"https://api.github.com/repos/idevelopment/Hcrm/deployments","created_at":"2016-06-17T14:49:28Z","updated_at":"2016-06-28T21:02:26Z","pushed_at":"2016-07-21T17:05:19Z","git_url":"git://github.com/idevelopment/Hcrm.git","ssh_url":"git@github.com:idevelopment/Hcrm.git","clone_url":"https://github.com/idevelopment/Hcrm.git","svn_url":"https://github.com/idevelopment/Hcrm","homepage":null,"size":819,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":34,"forks":1,"open_issues":34,"watchers":1,"default_branch":"master"}},"base":{"label":"idevelopment:master","ref":"master","sha":"c6a7e6acefb625714805bde80a41d873237149e6","user":{"login":"idevelopment","id":14967398,"avatar_url":"https://avatars.githubusercontent.com/u/14967398?v=3","gravatar_id":"","url":"https://api.github.com/users/idevelopment","html_url":"https://github.com/idevelopment","followers_url":"https://api.github.com/users/idevelopment/followers","following_url":"https://api.github.com/users/idevelopment/following{/other_user}","gists_url":"https://api.github.com/users/idevelopment/gists{/gist_id}","starred_url":"https://api.github.com/users/idevelopment/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idevelopment/subscriptions","organizations_url":"https://api.github.com/users/idevelopment/orgs","repos_url":"https://api.github.com/users/idevelopment/repos","events_url":"https://api.github.com/users/idevelopment/events{/privacy}","received_events_url":"https://api.github.com/users/idevelopment/received_events","type":"Organization","site_admin":false},"repo":{"id":61381083,"name":"Hcrm","full_name":"idevelopment/Hcrm","owner":{"login":"idevelopment","id":14967398,"avatar_url":"https://avatars.githubusercontent.com/u/14967398?v=3","gravatar_id":"","url":"https://api.github.com/users/idevelopment","html_url":"https://github.com/idevelopment","followers_url":"https://api.github.com/users/idevelopment/followers","following_url":"https://api.github.com/users/idevelopment/following{/other_user}","gists_url":"https://api.github.com/users/idevelopment/gists{/gist_id}","starred_url":"https://api.github.com/users/idevelopment/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idevelopment/subscriptions","organizations_url":"https://api.github.com/users/idevelopment/orgs","repos_url":"https://api.github.com/users/idevelopment/repos","events_url":"https://api.github.com/users/idevelopment/events{/privacy}","received_events_url":"https://api.github.com/users/idevelopment/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/idevelopment/Hcrm","description":"Open-source CRM for hosting companies ","fork":false,"url":"https://api.github.com/repos/idevelopment/Hcrm","forks_url":"https://api.github.com/repos/idevelopment/Hcrm/forks","keys_url":"https://api.github.com/repos/idevelopment/Hcrm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/idevelopment/Hcrm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/idevelopment/Hcrm/teams","hooks_url":"https://api.github.com/repos/idevelopment/Hcrm/hooks","issue_events_url":"https://api.github.com/repos/idevelopment/Hcrm/issues/events{/number}","events_url":"https://api.github.com/repos/idevelopment/Hcrm/events","assignees_url":"https://api.github.com/repos/idevelopment/Hcrm/assignees{/user}","branches_url":"https://api.github.com/repos/idevelopment/Hcrm/branches{/branch}","tags_url":"https://api.github.com/repos/idevelopment/Hcrm/tags","blobs_url":"https://api.github.com/repos/idevelopment/Hcrm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/idevelopment/Hcrm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/idevelopment/Hcrm/git/refs{/sha}","trees_url":"https://api.github.com/repos/idevelopment/Hcrm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/idevelopment/Hcrm/statuses/{sha}","languages_url":"https://api.github.com/repos/idevelopment/Hcrm/languages","stargazers_url":"https://api.github.com/repos/idevelopment/Hcrm/stargazers","contributors_url":"https://api.github.com/repos/idevelopment/Hcrm/contributors","subscribers_url":"https://api.github.com/repos/idevelopment/Hcrm/subscribers","subscription_url":"https://api.github.com/repos/idevelopment/Hcrm/subscription","commits_url":"https://api.github.com/repos/idevelopment/Hcrm/commits{/sha}","git_commits_url":"https://api.github.com/repos/idevelopment/Hcrm/git/commits{/sha}","comments_url":"https://api.github.com/repos/idevelopment/Hcrm/comments{/number}","issue_comment_url":"https://api.github.com/repos/idevelopment/Hcrm/issues/comments{/number}","contents_url":"https://api.github.com/repos/idevelopment/Hcrm/contents/{+path}","compare_url":"https://api.github.com/repos/idevelopment/Hcrm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/idevelopment/Hcrm/merges","archive_url":"https://api.github.com/repos/idevelopment/Hcrm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/idevelopment/Hcrm/downloads","issues_url":"https://api.github.com/repos/idevelopment/Hcrm/issues{/number}","pulls_url":"https://api.github.com/repos/idevelopment/Hcrm/pulls{/number}","milestones_url":"https://api.github.com/repos/idevelopment/Hcrm/milestones{/number}","notifications_url":"https://api.github.com/repos/idevelopment/Hcrm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/idevelopment/Hcrm/labels{/name}","releases_url":"https://api.github.com/repos/idevelopment/Hcrm/releases{/id}","deployments_url":"https://api.github.com/repos/idevelopment/Hcrm/deployments","created_at":"2016-06-17T14:49:28Z","updated_at":"2016-06-28T21:02:26Z","pushed_at":"2016-07-21T17:05:19Z","git_url":"git://github.com/idevelopment/Hcrm.git","ssh_url":"git@github.com:idevelopment/Hcrm.git","clone_url":"https://github.com/idevelopment/Hcrm.git","svn_url":"https://github.com/idevelopment/Hcrm","homepage":null,"size":819,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":34,"forks":1,"open_issues":34,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/idevelopment/Hcrm/pulls/122"},"html":{"href":"https://github.com/idevelopment/Hcrm/pull/122"},"issue":{"href":"https://api.github.com/repos/idevelopment/Hcrm/issues/122"},"comments":{"href":"https://api.github.com/repos/idevelopment/Hcrm/issues/122/comments"},"review_comments":{"href":"https://api.github.com/repos/idevelopment/Hcrm/pulls/122/comments"},"review_comment":{"href":"https://api.github.com/repos/idevelopment/Hcrm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/idevelopment/Hcrm/pulls/122/commits"},"statuses":{"href":"https://api.github.com/repos/idevelopment/Hcrm/statuses/a9e0a4567b7fd14f66bc96e4cdaaecfa9f6a366c"}}}}
{"actor":{"display_login":"ghermans"}}