{"id":15649799,"url":"https://github.com/mattt/rack-subdomain","last_synced_at":"2025-04-15T11:53:07.617Z","repository":{"id":3415130,"uuid":"4465974","full_name":"mattt/rack-subdomain","owner":"mattt","description":"Rack middleware to transparently route requests with a subdomain to a specified path with substitutions","archived":false,"fork":false,"pushed_at":"2021-03-02T19:02:41.000Z","size":19,"stargazers_count":38,"open_issues_count":0,"forks_count":7,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-28T19:45:07.094Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mattt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-05-28T01:06:10.000Z","updated_at":"2024-10-22T05:48:54.000Z","dependencies_parsed_at":"2022-09-21T13:01:30.499Z","dependency_job_id":null,"html_url":"https://github.com/mattt/rack-subdomain","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattt%2Frack-subdomain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattt%2Frack-subdomain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattt%2Frack-subdomain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattt%2Frack-subdomain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattt","download_url":"https://codeload.github.com/mattt/rack-subdomain/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248914113,"owners_count":21182358,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T12:32:03.967Z","updated_at":"2025-04-15T11:53:07.592Z","avatar_url":"https://github.com/mattt.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rack-subdomain\n\nRack middleware to transparently route requests with a subdomain\nto a specified path with substitutions.\n\n## Usage\n\n### Gemfile\n\n```ruby\ngem 'rack-subdomain'\n```\n\n### config.ru\n\n```ruby\n# Simple Example\n\nuse Rack::Subdomain, \"example.com\", to: \"/users/:subdomain\"\n\n# Complex Example\nuse Rack::Subdomain, \"example.com\", except: ['', 'www', 'secure'] do\n  map 'downloads', to: \"/downloads/:subdomain\"\n  map '*', to: \"/users/:subdomain\"\nend\n```\n\n## Contact\n\n[Mattt](https://twitter.com/mattt)\n\n## License\n\nrack-subdomain is available under the MIT license.\nSee the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattt%2Frack-subdomain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattt%2Frack-subdomain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattt%2Frack-subdomain/lists"}