Search code examples
perlsubdomaindancer

How do I handle wildcard subdomains in Dancer routes?


I'm writing a web app with the Dancer framework and I'd like to offer each user a subdomain, like wordpress.com does.

How can I specify my Dancer routes to take account of the domain name?


Solution

  • Look at how https://github.com/sukria/ThisShit is implemented