I am looking for a way to set dynamic url http://host.com/dynamic_value-123/ and be able to get these values (123)
I am looking for a way to set dynamic url http://host.com/dynamic_value-123/ and be able
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Considering you have the most basic example of a server with Node.js, you can achieve that with
req.url.split('-')[1]: