{"action":"created","issue":{"url":"https://api.github.com/repos/interagent/committee/issues/40","labels_url":"https://api.github.com/repos/interagent/committee/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/interagent/committee/issues/40/comments","events_url":"https://api.github.com/repos/interagent/committee/issues/40/events","html_url":"https://github.com/interagent/committee/pull/40","id":35692289,"number":40,"title":"Middlewares only touch requests inside prefix","user":{"login":"dpiddy","id":2182,"avatar_url":"https://avatars.githubusercontent.com/u/2182?v=3","gravatar_id":"","url":"https://api.github.com/users/dpiddy","html_url":"https://github.com/dpiddy","followers_url":"https://api.github.com/users/dpiddy/followers","following_url":"https://api.github.com/users/dpiddy/following{/other_user}","gists_url":"https://api.github.com/users/dpiddy/gists{/gist_id}","starred_url":"https://api.github.com/users/dpiddy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpiddy/subscriptions","organizations_url":"https://api.github.com/users/dpiddy/orgs","repos_url":"https://api.github.com/users/dpiddy/repos","events_url":"https://api.github.com/users/dpiddy/events{/privacy}","received_events_url":"https://api.github.com/users/dpiddy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2014-06-13T17:46:46Z","updated_at":"2015-09-18T21:54:41Z","closed_at":"2014-06-13T22:01:47Z","pull_request":{"url":"https://api.github.com/repos/interagent/committee/pulls/40","html_url":"https://github.com/interagent/committee/pull/40","diff_url":"https://github.com/interagent/committee/pull/40.diff","patch_url":"https://github.com/interagent/committee/pull/40.patch"},"body":"Get middleware only touching requests within `:prefix` if one is supplied. Makes it easier to integrate with Rails and such."},"comment":{"url":"https://api.github.com/repos/interagent/committee/issues/comments/141577521","html_url":"https://github.com/interagent/committee/pull/40#issuecomment-141577521","issue_url":"https://api.github.com/repos/interagent/committee/issues/40","id":141577521,"user":{"login":"brandur","id":96890,"avatar_url":"https://avatars.githubusercontent.com/u/96890?v=3","gravatar_id":"","url":"https://api.github.com/users/brandur","html_url":"https://github.com/brandur","followers_url":"https://api.github.com/users/brandur/followers","following_url":"https://api.github.com/users/brandur/following{/other_user}","gists_url":"https://api.github.com/users/brandur/gists{/gist_id}","starred_url":"https://api.github.com/users/brandur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandur/subscriptions","organizations_url":"https://api.github.com/users/brandur/orgs","repos_url":"https://api.github.com/users/brandur/repos","events_url":"https://api.github.com/users/brandur/events{/privacy}","received_events_url":"https://api.github.com/users/brandur/received_events","type":"User","site_admin":false},"created_at":"2015-09-18T21:54:41Z","updated_at":"2015-09-18T21:54:41Z","body":"Hey @michaelsauter, thanks for taking a look!\r\n\r\nI might be misunderstanding something, but I think that the `RequestUnpacker` only gets run when a route is inside of the `prefix` which Committee is handling. The entry point for the `RequestValidation` middleware is in the middleware base class which switches off the path being handled by the internal router [as seen here](https://github.com/interagent/committee/blob/02b98aee68e220a9a55484745bc974f3c109376e/lib/committee/middleware/base.rb#L19-L27). The router takes `prefix` as it's being initialized."}}