{"action":"created","issue":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/274","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/274/labels{/name}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/274/comments","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/274/events","html_url":"https://github.com/spring-cloud/spring-cloud-config/issues/274","id":117767998,"number":274,"title":"New zuul routes not added in order after call to \"/refresh\"","user":{"login":"hacbq","id":7564830,"avatar_url":"https://avatars.githubusercontent.com/u/7564830?v=3","gravatar_id":"","url":"https://api.github.com/users/hacbq","html_url":"https://github.com/hacbq","followers_url":"https://api.github.com/users/hacbq/followers","following_url":"https://api.github.com/users/hacbq/following{/other_user}","gists_url":"https://api.github.com/users/hacbq/gists{/gist_id}","starred_url":"https://api.github.com/users/hacbq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hacbq/subscriptions","organizations_url":"https://api.github.com/users/hacbq/orgs","repos_url":"https://api.github.com/users/hacbq/repos","events_url":"https://api.github.com/users/hacbq/events{/privacy}","received_events_url":"https://api.github.com/users/hacbq/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/labels/help%20wanted","name":"help wanted","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-19T08:50:28Z","updated_at":"2016-01-13T07:26:41Z","closed_at":"2016-01-12T14:40:53Z","body":"As I see in spring-cloud/spring-cloud-netflix#196. This bug fixed.\r\nI have zuul config\r\n```\r\nzuul:\r\n  ignoredServices: '*'\r\n  routes:\r\n    admin:\r\n      path: /admin/**\r\n      stripPrefix: true\r\n      serviceId: admin\r\n```\r\nI want to add a \"pages\" service like, and I add before path \"/admin/**\r\n```\r\nzuul:\r\n  ignoredServices: '*'\r\n  routes:\r\n    pages:\r\n      path: /admin/pages/**\r\n      stripPrefix: true\r\n      serviceId: pages\r\n    admin:\r\n      path: /admin/**\r\n      stripPrefix: true\r\n      serviceId: admin\r\n```\r\nAnd POST to \"http://localhost:8765/refresh\"\r\nIt seem zuul not reload routes.\r\nAnd I test, change it into\r\n```\r\nzuul:\r\n  ignoredServices: '*'\r\n  routes:\r\n    admin:\r\n      path: /admin/**\r\n      stripPrefix: true\r\n      serviceId: admin\r\n    pages:\r\n      path: /bla/pages/**\r\n      stripPrefix: true\r\n      serviceId: pages\r\n```\r\nAmazing, it works. Please tell me why doesn't it work if I add it before first routes\r\nI must restart zuul, first case must work"},"comment":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/comments/171201126","html_url":"https://github.com/spring-cloud/spring-cloud-config/issues/274#issuecomment-171201126","issue_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/274","id":171201126,"user":{"login":"hacbq","id":7564830,"avatar_url":"https://avatars.githubusercontent.com/u/7564830?v=3","gravatar_id":"","url":"https://api.github.com/users/hacbq","html_url":"https://github.com/hacbq","followers_url":"https://api.github.com/users/hacbq/followers","following_url":"https://api.github.com/users/hacbq/following{/other_user}","gists_url":"https://api.github.com/users/hacbq/gists{/gist_id}","starred_url":"https://api.github.com/users/hacbq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hacbq/subscriptions","organizations_url":"https://api.github.com/users/hacbq/orgs","repos_url":"https://api.github.com/users/hacbq/repos","events_url":"https://api.github.com/users/hacbq/events{/privacy}","received_events_url":"https://api.github.com/users/hacbq/received_events","type":"User","site_admin":false},"created_at":"2016-01-13T07:26:41Z","updated_at":"2016-01-13T07:26:41Z","body":"I opened new issue here :)\r\nhttps://github.com/spring-cloud/spring-cloud-netflix/issues/767\r\n"}}