update package.json and add post method