pass in route parameter to be used
extend router to index.js