Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

express get query params from url

GET /something?color1=red&color2=blue

app.get('/something', (req, res) => {
    req.query.color1 === 'red'  // true
    req.query.color2 === 'blue' // true
})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #express #query #params #url
ADD COMMENT
Topic
Name
8+1 =