added routes.js and main-controller