updated backend code to respond to POST requests