moving some functions from Server to Request
added prefix to the server routes