{"action":"created","issue":{"url":"https://api.github.com/repos/typicode/json-server/issues/342","repository_url":"https://api.github.com/repos/typicode/json-server","labels_url":"https://api.github.com/repos/typicode/json-server/issues/342/labels{/name}","comments_url":"https://api.github.com/repos/typicode/json-server/issues/342/comments","events_url":"https://api.github.com/repos/typicode/json-server/issues/342/events","html_url":"https://github.com/typicode/json-server/issues/342","id":170747477,"number":342,"title":"Support `--middlewares` option","user":{"login":"zakuro9715","id":3257770,"avatar_url":"https://avatars.githubusercontent.com/u/3257770?v=3","gravatar_id":"","url":"https://api.github.com/users/zakuro9715","html_url":"https://github.com/zakuro9715","followers_url":"https://api.github.com/users/zakuro9715/followers","following_url":"https://api.github.com/users/zakuro9715/following{/other_user}","gists_url":"https://api.github.com/users/zakuro9715/gists{/gist_id}","starred_url":"https://api.github.com/users/zakuro9715/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zakuro9715/subscriptions","organizations_url":"https://api.github.com/users/zakuro9715/orgs","repos_url":"https://api.github.com/users/zakuro9715/repos","events_url":"https://api.github.com/users/zakuro9715/events{/privacy}","received_events_url":"https://api.github.com/users/zakuro9715/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-11T21:08:38Z","updated_at":"2016-08-13T11:14:47Z","closed_at":null,"body":"Hi.\r\n\r\nWe can use express middlewares if use json-server as a module. But I want to specify middleware as cli option like this.\r\n\r\n```\r\n$ cat middlewares.js\r\nmodule.exports = [require('my-auth-middleware'), require('my-limit-middleware')]\r\n$ json-server db.json --middlewares=middlewares.js\r\n```\r\n\r\nI think it is very useful for guys not only me."},"comment":{"url":"https://api.github.com/repos/typicode/json-server/issues/comments/239615920","html_url":"https://github.com/typicode/json-server/issues/342#issuecomment-239615920","issue_url":"https://api.github.com/repos/typicode/json-server/issues/342","id":239615920,"user":{"login":"zakuro9715","id":3257770,"avatar_url":"https://avatars.githubusercontent.com/u/3257770?v=3","gravatar_id":"","url":"https://api.github.com/users/zakuro9715","html_url":"https://github.com/zakuro9715","followers_url":"https://api.github.com/users/zakuro9715/followers","following_url":"https://api.github.com/users/zakuro9715/following{/other_user}","gists_url":"https://api.github.com/users/zakuro9715/gists{/gist_id}","starred_url":"https://api.github.com/users/zakuro9715/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zakuro9715/subscriptions","organizations_url":"https://api.github.com/users/zakuro9715/orgs","repos_url":"https://api.github.com/users/zakuro9715/repos","events_url":"https://api.github.com/users/zakuro9715/events{/privacy}","received_events_url":"https://api.github.com/users/zakuro9715/received_events","type":"User","site_admin":false},"created_at":"2016-08-13T11:14:47Z","updated_at":"2016-08-13T11:14:47Z","body":"Hi @typicode.\r\n\r\nI agree it and implemented it. Please see my PR!\r\n\r\n"}}
{"actor":{"display_login":"zakuro9715"}}