Answers for "express get slash value"

0

express get slash value

app.get('/new/:url(.*)', (req, res) => {
  console.log(req.params.url) // will output 'https://www.google.com'
// --- OR ---
app.get('/new/:url(*)', (req, res) => {
  console.log(req.params.url) // will output 'https://www.google.com'
Posted by: Guest on April-25-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language