node.js - Subdomain Routing in Sails.js -


i trying figure out way route subdomains in sails.js in such way, dynamic, default routing not seem allow this.

for example; if user goes theirname.example.com, route read example.com/users/theirname, , parameters on subdomain tag onto end /user/theirname. have been searching web quite few hours solid information on how achieve such thing.

any appreciated.


Comments

Popular posts from this blog

google app engine - 403 Forbidden POST - Flask WTForms -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -

how to run a query SQL in node.js mysql -