Thin controller for RESTful applications