adds POST handler to server/server.js