module pattern for routes definition