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

Popular posts from this blog

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -