{"action":"opened","issue":{"url":"https://api.github.com/repos/kjvarga/sitemap_generator/issues/253","repository_url":"https://api.github.com/repos/kjvarga/sitemap_generator","labels_url":"https://api.github.com/repos/kjvarga/sitemap_generator/issues/253/labels{/name}","comments_url":"https://api.github.com/repos/kjvarga/sitemap_generator/issues/253/comments","events_url":"https://api.github.com/repos/kjvarga/sitemap_generator/issues/253/events","html_url":"https://github.com/kjvarga/sitemap_generator/issues/253","id":186259581,"number":253,"title":"Sitemaps for Multidomains","user":{"login":"krtschmr","id":13366714,"avatar_url":"https://avatars.githubusercontent.com/u/13366714?v=3","gravatar_id":"","url":"https://api.github.com/users/krtschmr","html_url":"https://github.com/krtschmr","followers_url":"https://api.github.com/users/krtschmr/followers","following_url":"https://api.github.com/users/krtschmr/following{/other_user}","gists_url":"https://api.github.com/users/krtschmr/gists{/gist_id}","starred_url":"https://api.github.com/users/krtschmr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krtschmr/subscriptions","organizations_url":"https://api.github.com/users/krtschmr/orgs","repos_url":"https://api.github.com/users/krtschmr/repos","events_url":"https://api.github.com/users/krtschmr/events{/privacy}","received_events_url":"https://api.github.com/users/krtschmr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-31T11:17:55Z","updated_at":"2016-10-31T11:17:55Z","closed_at":null,"body":"So we have a multi domain environment where each hosted website has basically the same routes\r\n`category_path`, `mod_path` & `root_path`. \r\nBased on the domain constraint and other defaults, those links can change a little bit. \r\n\r\n`domain1.com/my-cool-game/special-cool/vehicles`\r\ncan be on a nother domain\r\n`domain2.com/vehicles`\r\n\r\n\r\n> constraints DomainRouting.new(\"somethingdomain.com\") do\r\n>     devise_for :users, controllers: { registrations: \"registrations\" }\r\n>     scope \"mods\" do\r\n>       defaults game: \"some-game\" do\r\n>         get \"/*permalink\",  to: \"mods#show\",       as: :mod, constraints: ModConstraint.new(:something)\r\n>         get \"/*permalink\",  to: \"categories#show\", as: :category, constraints: CategoryConstraint.new(:something)> \r\n>       end\r\n>       root to: \"categories#index\"\r\n>     end\r\n>     get \"/\", to: redirect(\"/mods\")\r\n>   end\r\n\r\nthe question here is, how to use this beautiful gem, or better to say, how to add the correct path since we don't have a request and i can't throw the constraints into the routing_paths ?\r\n"}}
{"actor":{"display_login":"krtschmr"}}