Created router.js
Added route call to server and passed route function to server from index