add a post endpoint