added post method and body parser.