what is the type of req in nodejs code example
Example: how to check request type in js
app.use('/', (req, res, next) => {
let requestMethod = req.method;
console.log(requestMethod);
res.send('ok');
});
app.use('/', (req, res, next) => {
let requestMethod = req.method;
console.log(requestMethod);
res.send('ok');
});