{"action":"created","comment":{"url":"https://api.github.com/repos/teamslogup/sg-core-new/pulls/comments/68525536","id":68525536,"diff_hunk":"@@ -0,0 +1,61 @@\n+var gets = {};\n+var Logger = require('sg-logger');\n+var logger = new Logger(__filename);\n+var MICRO = require('microtime');\n+gets.validate = function () {\n+    return function (req, res, next) {\n+        var COMMON = req.meta.std.common;\n+        var IMAGE = req.meta.std.image;\n+        \n+        if (req.query.last === undefined) req.query.last = MICRO.now();\n+        if (req.query.size === undefined) req.query.size = COMMON.defaultLoadingLength;\n+        if (req.query.orderBy === undefined) req.query.orderBy = IMAGE.orderCreate;\n+        if (req.query.sort === undefined) req.query.sort = COMMON.DESC;\n+\n+        if (req.query.authorId !== undefined) {\n+            req.check('authorId', '400_12').isInt();\n+        } else {\n+            req.query.authorId = null;\n+        }\n+        \n+        req.check('last', '400_18').isInt();","path":"core/server/apis/etc/images/images.gets.js","position":21,"original_position":21,"commit_id":"a70dfdfda6f765396211f2f441205f990b8e4cd1","original_commit_id":"a70dfdfda6f765396211f2f441205f990b8e4cd1","user":{"login":"hwaranglee","id":8370183,"avatar_url":"https://avatars.githubusercontent.com/u/8370183?v=3","gravatar_id":"","url":"https://api.github.com/users/hwaranglee","html_url":"https://github.com/hwaranglee","followers_url":"https://api.github.com/users/hwaranglee/followers","following_url":"https://api.github.com/users/hwaranglee/following{/other_user}","gists_url":"https://api.github.com/users/hwaranglee/gists{/gist_id}","starred_url":"https://api.github.com/users/hwaranglee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hwaranglee/subscriptions","organizations_url":"https://api.github.com/users/hwaranglee/orgs","repos_url":"https://api.github.com/users/hwaranglee/repos","events_url":"https://api.github.com/users/hwaranglee/events{/privacy}","received_events_url":"https://api.github.com/users/hwaranglee/received_events","type":"User","site_admin":false},"body":"400_12 로 바꿀것.","created_at":"2016-06-27T05:57:50Z","updated_at":"2016-06-27T05:57:50Z","html_url":"https://github.com/teamslogup/sg-core-new/pull/2#discussion_r68525536","pull_request_url":"https://api.github.com/repos/teamslogup/sg-core-new/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/teamslogup/sg-core-new/pulls/comments/68525536"},"html":{"href":"https://github.com/teamslogup/sg-core-new/pull/2#discussion_r68525536"},"pull_request":{"href":"https://api.github.com/repos/teamslogup/sg-core-new/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/teamslogup/sg-core-new/pulls/2","id":75259577,"html_url":"https://github.com/teamslogup/sg-core-new/pull/2","diff_url":"https://github.com/teamslogup/sg-core-new/pull/2.diff","patch_url":"https://github.com/teamslogup/sg-core-new/pull/2.patch","issue_url":"https://api.github.com/repos/teamslogup/sg-core-new/issues/2","number":2,"state":"open","locked":false,"title":"image api 수정및 추가","user":{"login":"webdusrn","id":17243198,"avatar_url":"https://avatars.githubusercontent.com/u/17243198?v=3","gravatar_id":"","url":"https://api.github.com/users/webdusrn","html_url":"https://github.com/webdusrn","followers_url":"https://api.github.com/users/webdusrn/followers","following_url":"https://api.github.com/users/webdusrn/following{/other_user}","gists_url":"https://api.github.com/users/webdusrn/gists{/gist_id}","starred_url":"https://api.github.com/users/webdusrn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webdusrn/subscriptions","organizations_url":"https://api.github.com/users/webdusrn/orgs","repos_url":"https://api.github.com/users/webdusrn/repos","events_url":"https://api.github.com/users/webdusrn/events{/privacy}","received_events_url":"https://api.github.com/users/webdusrn/received_events","type":"User","site_admin":false},"body":"put 요청: authorized 수정 - admin 권한\r\ngets 요청: admin 권한","created_at":"2016-06-27T05:53:22Z","updated_at":"2016-06-27T05:57:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aa284934dfb57d8b72bc099454abeeea62e79d68","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/teamslogup/sg-core-new/pulls/2/commits","review_comments_url":"https://api.github.com/repos/teamslogup/sg-core-new/pulls/2/comments","review_comment_url":"https://api.github.com/repos/teamslogup/sg-core-new/pulls/comments{/number}","comments_url":"https://api.github.com/repos/teamslogup/sg-core-new/issues/2/comments","statuses_url":"https://api.github.com/repos/teamslogup/sg-core-new/statuses/a70dfdfda6f765396211f2f441205f990b8e4cd1","head":{"label":"teamslogup:feature/api-images-put","ref":"feature/api-images-put","sha":"a70dfdfda6f765396211f2f441205f990b8e4cd1","user":{"login":"teamslogup","id":13194272,"avatar_url":"https://avatars.githubusercontent.com/u/13194272?v=3","gravatar_id":"","url":"https://api.github.com/users/teamslogup","html_url":"https://github.com/teamslogup","followers_url":"https://api.github.com/users/teamslogup/followers","following_url":"https://api.github.com/users/teamslogup/following{/other_user}","gists_url":"https://api.github.com/users/teamslogup/gists{/gist_id}","starred_url":"https://api.github.com/users/teamslogup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamslogup/subscriptions","organizations_url":"https://api.github.com/users/teamslogup/orgs","repos_url":"https://api.github.com/users/teamslogup/repos","events_url":"https://api.github.com/users/teamslogup/events{/privacy}","received_events_url":"https://api.github.com/users/teamslogup/received_events","type":"Organization","site_admin":false},"repo":{"id":61890127,"name":"sg-core-new","full_name":"teamslogup/sg-core-new","owner":{"login":"teamslogup","id":13194272,"avatar_url":"https://avatars.githubusercontent.com/u/13194272?v=3","gravatar_id":"","url":"https://api.github.com/users/teamslogup","html_url":"https://github.com/teamslogup","followers_url":"https://api.github.com/users/teamslogup/followers","following_url":"https://api.github.com/users/teamslogup/following{/other_user}","gists_url":"https://api.github.com/users/teamslogup/gists{/gist_id}","starred_url":"https://api.github.com/users/teamslogup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamslogup/subscriptions","organizations_url":"https://api.github.com/users/teamslogup/orgs","repos_url":"https://api.github.com/users/teamslogup/repos","events_url":"https://api.github.com/users/teamslogup/events{/privacy}","received_events_url":"https://api.github.com/users/teamslogup/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/teamslogup/sg-core-new","description":null,"fork":false,"url":"https://api.github.com/repos/teamslogup/sg-core-new","forks_url":"https://api.github.com/repos/teamslogup/sg-core-new/forks","keys_url":"https://api.github.com/repos/teamslogup/sg-core-new/keys{/key_id}","collaborators_url":"https://api.github.com/repos/teamslogup/sg-core-new/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/teamslogup/sg-core-new/teams","hooks_url":"https://api.github.com/repos/teamslogup/sg-core-new/hooks","issue_events_url":"https://api.github.com/repos/teamslogup/sg-core-new/issues/events{/number}","events_url":"https://api.github.com/repos/teamslogup/sg-core-new/events","assignees_url":"https://api.github.com/repos/teamslogup/sg-core-new/assignees{/user}","branches_url":"https://api.github.com/repos/teamslogup/sg-core-new/branches{/branch}","tags_url":"https://api.github.com/repos/teamslogup/sg-core-new/tags","blobs_url":"https://api.github.com/repos/teamslogup/sg-core-new/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/teamslogup/sg-core-new/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/teamslogup/sg-core-new/git/refs{/sha}","trees_url":"https://api.github.com/repos/teamslogup/sg-core-new/git/trees{/sha}","statuses_url":"https://api.github.com/repos/teamslogup/sg-core-new/statuses/{sha}","languages_url":"https://api.github.com/repos/teamslogup/sg-core-new/languages","stargazers_url":"https://api.github.com/repos/teamslogup/sg-core-new/stargazers","contributors_url":"https://api.github.com/repos/teamslogup/sg-core-new/contributors","subscribers_url":"https://api.github.com/repos/teamslogup/sg-core-new/subscribers","subscription_url":"https://api.github.com/repos/teamslogup/sg-core-new/subscription","commits_url":"https://api.github.com/repos/teamslogup/sg-core-new/commits{/sha}","git_commits_url":"https://api.github.com/repos/teamslogup/sg-core-new/git/commits{/sha}","comments_url":"https://api.github.com/repos/teamslogup/sg-core-new/comments{/number}","issue_comment_url":"https://api.github.com/repos/teamslogup/sg-core-new/issues/comments{/number}","contents_url":"https://api.github.com/repos/teamslogup/sg-core-new/contents/{+path}","compare_url":"https://api.github.com/repos/teamslogup/sg-core-new/compare/{base}...{head}","merges_url":"https://api.github.com/repos/teamslogup/sg-core-new/merges","archive_url":"https://api.github.com/repos/teamslogup/sg-core-new/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/teamslogup/sg-core-new/downloads","issues_url":"https://api.github.com/repos/teamslogup/sg-core-new/issues{/number}","pulls_url":"https://api.github.com/repos/teamslogup/sg-core-new/pulls{/number}","milestones_url":"https://api.github.com/repos/teamslogup/sg-core-new/milestones{/number}","notifications_url":"https://api.github.com/repos/teamslogup/sg-core-new/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/teamslogup/sg-core-new/labels{/name}","releases_url":"https://api.github.com/repos/teamslogup/sg-core-new/releases{/id}","deployments_url":"https://api.github.com/repos/teamslogup/sg-core-new/deployments","created_at":"2016-06-24T14:29:32Z","updated_at":"2016-06-24T14:31:05Z","pushed_at":"2016-06-27T05:53:22Z","git_url":"git://github.com/teamslogup/sg-core-new.git","ssh_url":"git@github.com:teamslogup/sg-core-new.git","clone_url":"https://github.com/teamslogup/sg-core-new.git","svn_url":"https://github.com/teamslogup/sg-core-new","homepage":null,"size":344,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"teamslogup:develop","ref":"develop","sha":"76eb9548ff0800f81a140cb10294499e44e572c8","user":{"login":"teamslogup","id":13194272,"avatar_url":"https://avatars.githubusercontent.com/u/13194272?v=3","gravatar_id":"","url":"https://api.github.com/users/teamslogup","html_url":"https://github.com/teamslogup","followers_url":"https://api.github.com/users/teamslogup/followers","following_url":"https://api.github.com/users/teamslogup/following{/other_user}","gists_url":"https://api.github.com/users/teamslogup/gists{/gist_id}","starred_url":"https://api.github.com/users/teamslogup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamslogup/subscriptions","organizations_url":"https://api.github.com/users/teamslogup/orgs","repos_url":"https://api.github.com/users/teamslogup/repos","events_url":"https://api.github.com/users/teamslogup/events{/privacy}","received_events_url":"https://api.github.com/users/teamslogup/received_events","type":"Organization","site_admin":false},"repo":{"id":61890127,"name":"sg-core-new","full_name":"teamslogup/sg-core-new","owner":{"login":"teamslogup","id":13194272,"avatar_url":"https://avatars.githubusercontent.com/u/13194272?v=3","gravatar_id":"","url":"https://api.github.com/users/teamslogup","html_url":"https://github.com/teamslogup","followers_url":"https://api.github.com/users/teamslogup/followers","following_url":"https://api.github.com/users/teamslogup/following{/other_user}","gists_url":"https://api.github.com/users/teamslogup/gists{/gist_id}","starred_url":"https://api.github.com/users/teamslogup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamslogup/subscriptions","organizations_url":"https://api.github.com/users/teamslogup/orgs","repos_url":"https://api.github.com/users/teamslogup/repos","events_url":"https://api.github.com/users/teamslogup/events{/privacy}","received_events_url":"https://api.github.com/users/teamslogup/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/teamslogup/sg-core-new","description":null,"fork":false,"url":"https://api.github.com/repos/teamslogup/sg-core-new","forks_url":"https://api.github.com/repos/teamslogup/sg-core-new/forks","keys_url":"https://api.github.com/repos/teamslogup/sg-core-new/keys{/key_id}","collaborators_url":"https://api.github.com/repos/teamslogup/sg-core-new/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/teamslogup/sg-core-new/teams","hooks_url":"https://api.github.com/repos/teamslogup/sg-core-new/hooks","issue_events_url":"https://api.github.com/repos/teamslogup/sg-core-new/issues/events{/number}","events_url":"https://api.github.com/repos/teamslogup/sg-core-new/events","assignees_url":"https://api.github.com/repos/teamslogup/sg-core-new/assignees{/user}","branches_url":"https://api.github.com/repos/teamslogup/sg-core-new/branches{/branch}","tags_url":"https://api.github.com/repos/teamslogup/sg-core-new/tags","blobs_url":"https://api.github.com/repos/teamslogup/sg-core-new/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/teamslogup/sg-core-new/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/teamslogup/sg-core-new/git/refs{/sha}","trees_url":"https://api.github.com/repos/teamslogup/sg-core-new/git/trees{/sha}","statuses_url":"https://api.github.com/repos/teamslogup/sg-core-new/statuses/{sha}","languages_url":"https://api.github.com/repos/teamslogup/sg-core-new/languages","stargazers_url":"https://api.github.com/repos/teamslogup/sg-core-new/stargazers","contributors_url":"https://api.github.com/repos/teamslogup/sg-core-new/contributors","subscribers_url":"https://api.github.com/repos/teamslogup/sg-core-new/subscribers","subscription_url":"https://api.github.com/repos/teamslogup/sg-core-new/subscription","commits_url":"https://api.github.com/repos/teamslogup/sg-core-new/commits{/sha}","git_commits_url":"https://api.github.com/repos/teamslogup/sg-core-new/git/commits{/sha}","comments_url":"https://api.github.com/repos/teamslogup/sg-core-new/comments{/number}","issue_comment_url":"https://api.github.com/repos/teamslogup/sg-core-new/issues/comments{/number}","contents_url":"https://api.github.com/repos/teamslogup/sg-core-new/contents/{+path}","compare_url":"https://api.github.com/repos/teamslogup/sg-core-new/compare/{base}...{head}","merges_url":"https://api.github.com/repos/teamslogup/sg-core-new/merges","archive_url":"https://api.github.com/repos/teamslogup/sg-core-new/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/teamslogup/sg-core-new/downloads","issues_url":"https://api.github.com/repos/teamslogup/sg-core-new/issues{/number}","pulls_url":"https://api.github.com/repos/teamslogup/sg-core-new/pulls{/number}","milestones_url":"https://api.github.com/repos/teamslogup/sg-core-new/milestones{/number}","notifications_url":"https://api.github.com/repos/teamslogup/sg-core-new/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/teamslogup/sg-core-new/labels{/name}","releases_url":"https://api.github.com/repos/teamslogup/sg-core-new/releases{/id}","deployments_url":"https://api.github.com/repos/teamslogup/sg-core-new/deployments","created_at":"2016-06-24T14:29:32Z","updated_at":"2016-06-24T14:31:05Z","pushed_at":"2016-06-27T05:53:22Z","git_url":"git://github.com/teamslogup/sg-core-new.git","ssh_url":"git@github.com:teamslogup/sg-core-new.git","clone_url":"https://github.com/teamslogup/sg-core-new.git","svn_url":"https://github.com/teamslogup/sg-core-new","homepage":null,"size":344,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/teamslogup/sg-core-new/pulls/2"},"html":{"href":"https://github.com/teamslogup/sg-core-new/pull/2"},"issue":{"href":"https://api.github.com/repos/teamslogup/sg-core-new/issues/2"},"comments":{"href":"https://api.github.com/repos/teamslogup/sg-core-new/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/teamslogup/sg-core-new/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/teamslogup/sg-core-new/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/teamslogup/sg-core-new/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/teamslogup/sg-core-new/statuses/a70dfdfda6f765396211f2f441205f990b8e4cd1"}}}}
{"actor":{"display_login":"hwaranglee"}}