{"action":"closed","issue":{"url":"https://api.github.com/repos/Ohmbrewer/rhizome/issues/47","labels_url":"https://api.github.com/repos/Ohmbrewer/rhizome/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/Ohmbrewer/rhizome/issues/47/comments","events_url":"https://api.github.com/repos/Ohmbrewer/rhizome/issues/47/events","html_url":"https://github.com/Ohmbrewer/rhizome/issues/47","id":116270538,"number":47,"title":"Add a router method for dynamically added Equipment","user":{"login":"kyleoliveira","id":5393682,"avatar_url":"https://avatars.githubusercontent.com/u/5393682?v=3","gravatar_id":"","url":"https://api.github.com/users/kyleoliveira","html_url":"https://github.com/kyleoliveira","followers_url":"https://api.github.com/users/kyleoliveira/followers","following_url":"https://api.github.com/users/kyleoliveira/following{/other_user}","gists_url":"https://api.github.com/users/kyleoliveira/gists{/gist_id}","starred_url":"https://api.github.com/users/kyleoliveira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyleoliveira/subscriptions","organizations_url":"https://api.github.com/users/kyleoliveira/orgs","repos_url":"https://api.github.com/users/kyleoliveira/repos","events_url":"https://api.github.com/users/kyleoliveira/events{/privacy}","received_events_url":"https://api.github.com/users/kyleoliveira/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Ohmbrewer/rhizome/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/Ohmbrewer/rhizome/labels/high","name":"high","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Ohmbrewer/rhizome/milestones/5","html_url":"https://github.com/Ohmbrewer/rhizome/milestones/Sprint%20F15-05","labels_url":"https://api.github.com/repos/Ohmbrewer/rhizome/milestones/5/labels","id":1336251,"number":5,"title":"Sprint F15-05","description":"Tasks identified for our fifth Sprint of Fall Semester 2015.","creator":{"login":"kyleoliveira","id":5393682,"avatar_url":"https://avatars.githubusercontent.com/u/5393682?v=3","gravatar_id":"","url":"https://api.github.com/users/kyleoliveira","html_url":"https://github.com/kyleoliveira","followers_url":"https://api.github.com/users/kyleoliveira/followers","following_url":"https://api.github.com/users/kyleoliveira/following{/other_user}","gists_url":"https://api.github.com/users/kyleoliveira/gists{/gist_id}","starred_url":"https://api.github.com/users/kyleoliveira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyleoliveira/subscriptions","organizations_url":"https://api.github.com/users/kyleoliveira/orgs","repos_url":"https://api.github.com/users/kyleoliveira/repos","events_url":"https://api.github.com/users/kyleoliveira/events{/privacy}","received_events_url":"https://api.github.com/users/kyleoliveira/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":14,"state":"open","created_at":"2015-10-03T17:43:21Z","updated_at":"2015-11-14T16:21:07Z","due_on":"2015-11-14T08:00:00Z","closed_at":null},"comments":0,"created_at":"2015-11-11T05:48:32Z","updated_at":"2015-11-14T16:21:07Z","closed_at":"2015-11-14T16:21:07Z","body":"Particle currently does not support registering Particle Functions after setup() fires, so once we've swapped over to using dynamically added Equipment (see #30 ), we'll lose our update functions.\r\n\r\nTo fix this, we'll want to add a single Particle Function that acts as a router and takes the provided update string, parses it, finds the right Equipment in the Sprout List, and passes the rest of the update string on to that Equipment's update method.\r\n\r\nMake this function available at ```/update``` and let the first two comma-delimited arguments be type and ID, respectively."}}