Routes file now accepts callbacks