const app = express(); const routers = require("./routers/student"); app.use(express.json()); app.use(routers); // maintain the above app.use order for solving undefined request body error