How to get,multiple GET request params from angular to nodejs/Express js
<p>I want to retrieve various request params in express sent to me by angular but I keep on getting 404 error:
Code angular controller:</p>

<pre><code>var config = {
     params: { userid: "userffvfid ",
                pass:"abcd"
            }};

$http.get('/erai',config).success(function(response) {
    console.log("I got the data I requested");
    $scope.therapist_list = response; });
</code></pre>

<p>Node js/Express js code:</p>

<pre><code>app.get('/erai',function(req,res){
    console.log("got request");
    console.log(req.params.userid);
    console.log(req.params.pass);
    res.send("hello");
});
</code></pre>

<p>How do i access the params properly and respond to it properly w/o getting 404 error?</p>