add routes and views to server
add routes and views to server