express - How to pass a link as parameter via route expressjs -


according document, when passing parameter through method on express, can use:

localhost:8080/example/:first_parameter 

then value by:

let first_parameter = req.params.first_parameter; 

however when first parameter link, like:

localhost:8080/example/"http://something.net" 

it wil error. how pass link parameter via route expressjs


Comments