js request object check methos 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');
});