Friday 5 May 2017

Differentiate 2 GET Request with Express and AngularJS

Is there a way to differentiate 2 GET Requests with exactly the same "format" like :

app.get("/user/:id", function(req,res){
    ...
});
app.get("/user/:name", function(req,res){
   ...
});



via Tewan

No comments:

Post a Comment