Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #express #slash
ADD COMMENT
Topic
Name
5+4 =