Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to check request type in js

app.use('/', (req, res, next) => {
  let requestMethod = req.method;
  console.log(requestMethod);
  res.send('ok');
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #request #type #js
ADD COMMENT
Topic
Name
3+5 =