Connect middleware to route based on X-UA-Device