mapped CRUD to HTTP POST, GET, PUT, DELETE. added before and after