node.js - Express req.body is empty when data is submitted -


i building api node.js, express.js , mongodb. when submit form , use req object in server controller, req.body object empty. have read other questions related , tried answers, error remains.

this req.body object supposed contain form data

i don't know if wrong, have tried everything, if has answer appreciate it. link github repo, file controller is.

link github repo controller is

thanks in advance.

thanks trying help, js code fine, newby error on html form, omitted "name" attributes on form controls, that's why req.body object empty.


Comments