Route erb

Added route.erb file and updated logic in server file.