added body-parse to parse the post as json-encoded