Jak sprawdzić typ żądania w JS

app.use('/', (req, res, next) => {
  let requestMethod = req.method;
  console.log(requestMethod);
  res.send('ok');
});
Funny Fowl