Express get sub-domain name
<p>is there a way to use the express router to get the variable of the subdomain.</p>

<p>Lets say I have <code>foo.example.com</code> how can I get an output of <code>foo</code>.</p>

<p>Thanks</p>