1res.redirect('/foo/bar')
2res.redirect('http://example.com')
3res.redirect(301, 'http://example.com')
4res.redirect('../login')
5
1// GET /search?q=tobi+ferret
2console.dir(req.query.q)
3// => 'tobi ferret'
4
5// GET /shoes?order=desc&shoe[color]=blue&shoe[type]=converse
6console.dir(req.query.order)
7// => 'desc'
8
9console.dir(req.query.shoe.color)
10// => 'blue'
11
12console.dir(req.query.shoe.type)
13// => 'converse'
14
15// GET /shoes?color[]=blue&color[]=black&color[]=red
16console.dir(req.query.color)
17// => ['blue', 'black', 'red']
18
1req.params.id // It's been like requesting the value 'id' using parameter(params)