Added domains middle ware for parsing subdomains from url