{"action":"opened","issue":{"url":"https://api.github.com/repos/alexmingoia/koa-router/issues/185","labels_url":"https://api.github.com/repos/alexmingoia/koa-router/issues/185/labels{/name}","comments_url":"https://api.github.com/repos/alexmingoia/koa-router/issues/185/comments","events_url":"https://api.github.com/repos/alexmingoia/koa-router/issues/185/events","html_url":"https://github.com/alexmingoia/koa-router/issues/185","id":109652507,"number":185,"title":".use middleware is not getting called if .get route is emptystring","user":{"login":"aaronz8","id":940275,"avatar_url":"https://avatars.githubusercontent.com/u/940275?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronz8","html_url":"https://github.com/aaronz8","followers_url":"https://api.github.com/users/aaronz8/followers","following_url":"https://api.github.com/users/aaronz8/following{/other_user}","gists_url":"https://api.github.com/users/aaronz8/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronz8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronz8/subscriptions","organizations_url":"https://api.github.com/users/aaronz8/orgs","repos_url":"https://api.github.com/users/aaronz8/repos","events_url":"https://api.github.com/users/aaronz8/events{/privacy}","received_events_url":"https://api.github.com/users/aaronz8/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-04T00:03:07Z","updated_at":"2015-10-04T00:03:07Z","closed_at":null,"body":"\"in middleware\" doesn't appear for:\r\n```javascript\r\nappRouter\r\n  .use(function*(next) {\r\n    console.log(\"in middleware\");\r\n    yield next();\r\n  })\r\n  .get('', function*() {\r\n    this.body = \"gotten\";\r\n  })\r\n```\r\nwhile it does for\r\n```javascript\r\nappRouter\r\n  .use(function*(next) {\r\n    console.log(\"in middleware\");\r\n    yield next();\r\n  })\r\n  .get('/', function*() {\r\n    this.body = \"gotten\";\r\n  })\r\n```\r\n\r\nI was using '', since I used this to attach routes:\r\n```javascript\r\napp.use(router.routes());\r\nrouter.use('/', appRouter.routes());\r\n// and several other routers at different mount points\r\n```\r\n\r\nI thought route matching was done by <path at `router` middleware> + <path at appRouter.get> (in my case, emptystring + /). But the method that is working is / + /, so I'm confused."}}