{"action":"created","issue":{"url":"https://api.github.com/repos/danielsz/system-dependency-injection/issues/3","labels_url":"https://api.github.com/repos/danielsz/system-dependency-injection/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/danielsz/system-dependency-injection/issues/3/comments","events_url":"https://api.github.com/repos/danielsz/system-dependency-injection/issues/3/events","html_url":"https://github.com/danielsz/system-dependency-injection/issues/3","id":108560346,"number":3,"title":"Suggestion for a neater DI of db into server api functions","user":{"login":"kajism","id":11755900,"avatar_url":"https://avatars.githubusercontent.com/u/11755900?v=3","gravatar_id":"","url":"https://api.github.com/users/kajism","html_url":"https://github.com/kajism","followers_url":"https://api.github.com/users/kajism/followers","following_url":"https://api.github.com/users/kajism/following{/other_user}","gists_url":"https://api.github.com/users/kajism/gists{/gist_id}","starred_url":"https://api.github.com/users/kajism/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kajism/subscriptions","organizations_url":"https://api.github.com/users/kajism/orgs","repos_url":"https://api.github.com/users/kajism/repos","events_url":"https://api.github.com/users/kajism/events{/privacy}","received_events_url":"https://api.github.com/users/kajism/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-27T20:52:41Z","updated_at":"2015-09-27T23:38:14Z","closed_at":null,"body":"The system/components/app.clj is quite a fresh file, so maybe this could be considered:\r\n\r\n\"A closure is also neater than attaching the database connection to the request map; we need only destructure it once, rather than in every route.\" -- James Reeves\r\n\r\nhttps://www.booleanknot.com/blog/2015/05/22/structuring-clojure-web-apps.html"},"comment":{"url":"https://api.github.com/repos/danielsz/system-dependency-injection/issues/comments/143603290","html_url":"https://github.com/danielsz/system-dependency-injection/issues/3#issuecomment-143603290","issue_url":"https://api.github.com/repos/danielsz/system-dependency-injection/issues/3","id":143603290,"user":{"login":"danielsz","id":859131,"avatar_url":"https://avatars.githubusercontent.com/u/859131?v=3","gravatar_id":"","url":"https://api.github.com/users/danielsz","html_url":"https://github.com/danielsz","followers_url":"https://api.github.com/users/danielsz/followers","following_url":"https://api.github.com/users/danielsz/following{/other_user}","gists_url":"https://api.github.com/users/danielsz/gists{/gist_id}","starred_url":"https://api.github.com/users/danielsz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielsz/subscriptions","organizations_url":"https://api.github.com/users/danielsz/orgs","repos_url":"https://api.github.com/users/danielsz/repos","events_url":"https://api.github.com/users/danielsz/events{/privacy}","received_events_url":"https://api.github.com/users/danielsz/received_events","type":"User","site_admin":false},"created_at":"2015-09-27T23:38:14Z","updated_at":"2015-09-27T23:38:14Z","body":"This is very interesting. I will be looking into it. \r\nI will also gladly accept a PR if you're up for it.\r\nThank you, @kajism."}}