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