add a post endpoint to receive json