{"action":"opened","issue":{"url":"https://api.github.com/repos/strongloop/express/issues/2740","labels_url":"https://api.github.com/repos/strongloop/express/issues/2740/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/express/issues/2740/comments","events_url":"https://api.github.com/repos/strongloop/express/issues/2740/events","html_url":"https://github.com/strongloop/express/issues/2740","id":102446529,"number":2740,"title":"Middleware conflicts - question","user":{"login":"kfiron","id":2239908,"avatar_url":"https://avatars.githubusercontent.com/u/2239908?v=3","gravatar_id":"","url":"https://api.github.com/users/kfiron","html_url":"https://github.com/kfiron","followers_url":"https://api.github.com/users/kfiron/followers","following_url":"https://api.github.com/users/kfiron/following{/other_user}","gists_url":"https://api.github.com/users/kfiron/gists{/gist_id}","starred_url":"https://api.github.com/users/kfiron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kfiron/subscriptions","organizations_url":"https://api.github.com/users/kfiron/orgs","repos_url":"https://api.github.com/users/kfiron/repos","events_url":"https://api.github.com/users/kfiron/events{/privacy}","received_events_url":"https://api.github.com/users/kfiron/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-21T19:20:01Z","updated_at":"2015-08-21T19:20:01Z","closed_at":null,"body":"Following scenario:\r\n\r\nvar middlewre = function(){\r\n    return function(req, res, next){\r\n        // do somthing\r\n        next();\r\n   }\r\n}\r\n\r\nthen you use it twice:\r\napp.use('/', middleware());\r\napp.use('/SomePath', middleware());\r\n\r\nIf request comes to '/SomePath' the middleware will run twice. does it make sense? I would expect that '/' is superset and the middleware will run only once.\r\n"}}