Fix addAlamidRoute helper to work with current middler version