Add handling of PUT and POST requests