CardController modified according to RESTful API.