{"action":"created","issue":{"url":"https://api.github.com/repos/codegangsta/negroni/issues/79","labels_url":"https://api.github.com/repos/codegangsta/negroni/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/codegangsta/negroni/issues/79/comments","events_url":"https://api.github.com/repos/codegangsta/negroni/issues/79/events","html_url":"https://github.com/codegangsta/negroni/issues/79","id":63729021,"number":79,"title":"About Route Specific Middleware","user":{"login":"panjunjie","id":796480,"avatar_url":"https://avatars.githubusercontent.com/u/796480?v=3","gravatar_id":"","url":"https://api.github.com/users/panjunjie","html_url":"https://github.com/panjunjie","followers_url":"https://api.github.com/users/panjunjie/followers","following_url":"https://api.github.com/users/panjunjie/following{/other_user}","gists_url":"https://api.github.com/users/panjunjie/gists{/gist_id}","starred_url":"https://api.github.com/users/panjunjie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/panjunjie/subscriptions","organizations_url":"https://api.github.com/users/panjunjie/orgs","repos_url":"https://api.github.com/users/panjunjie/repos","events_url":"https://api.github.com/users/panjunjie/events{/privacy}","received_events_url":"https://api.github.com/users/panjunjie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-23T13:57:35Z","updated_at":"2015-07-21T01:31:04Z","closed_at":null,"body":"\r\n    //front web\r\n    router := mux.NewRouter()\r\n    router.HandleFunc(\"/\", controller.Index)\r\n\r\n    //backend\r\n    adminRoutes := mux.NewRouter()\r\n    adminRoutes.HandleFunc(\"/admin/index\", admin.Index)\r\n    adminRoutes.HandleFunc(\"/admin/article\", admin.Article)\r\n\r\n    router.Handle(\"/admin\", negroni.New(\r\n      negroni.NewLogger(),\r\n      negroni.NewStatic(http.Dir(\".\")),\r\n      negroni.NewRecovery(),\r\n      negroni.Wrap(adminRoutes),\r\n    ))\r\n\r\n    n.UseHandler(router)\r\n\r\n\r\nWhy the backend (eg: http://localhost:3000/admin/index , http://localhost:3000/admin/article) appeared in 404, but the front web (eg: http://localhost:3000/) is correct."},"comment":{"url":"https://api.github.com/repos/codegangsta/negroni/issues/comments/123124016","html_url":"https://github.com/codegangsta/negroni/issues/79#issuecomment-123124016","issue_url":"https://api.github.com/repos/codegangsta/negroni/issues/79","id":123124016,"user":{"login":"Kinghack","id":1154775,"avatar_url":"https://avatars.githubusercontent.com/u/1154775?v=3","gravatar_id":"","url":"https://api.github.com/users/Kinghack","html_url":"https://github.com/Kinghack","followers_url":"https://api.github.com/users/Kinghack/followers","following_url":"https://api.github.com/users/Kinghack/following{/other_user}","gists_url":"https://api.github.com/users/Kinghack/gists{/gist_id}","starred_url":"https://api.github.com/users/Kinghack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kinghack/subscriptions","organizations_url":"https://api.github.com/users/Kinghack/orgs","repos_url":"https://api.github.com/users/Kinghack/repos","events_url":"https://api.github.com/users/Kinghack/events{/privacy}","received_events_url":"https://api.github.com/users/Kinghack/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T01:31:04Z","updated_at":"2015-07-21T01:31:04Z","body":"Hi, After did as you commented, I found that when I visit '/api/', It will still go in router(HomeHandler)first. And then go in to the ValidateMessage. I'm new to go. Is there  any easy way to give unique middleware to specific route? Thanks."}}