I need to understand what this line of code means
app.get("/users/:id", function(req, res){
var data = userModel.find().where('username', req);
res.send(data);
});
The part that I don't understand is "/users/:id", specifically the :id part. What does this syntax of http request mean?
:is a normal, legal character in a path component in an URL other than the first component. So it should do nothing special in the client. In the server, it can do anything at all, just like any other path component.