made the server more RESTful