Adjust routes so that a separate API subdomain is supported but not required.