separated routes from server in app file