title: How to implement redirect after sign up in Express?
body: <p>All:</p>
  
  <p>I am pretty new to Express.js, I wonder how can I redirect to home page(with successful logged in indicator) after user successfully signs up?</p>
  
  <p>For example:</p>
  
  <p><strong>signup.html</strong></p>
  
  <pre><code>&lt;form action="/login" method="POST"&gt;
    &lt;input type="text" name="username"&gt;
    &lt;input type="password" name="password"&gt;
    &lt;input type="submit" value="login"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p><strong>Handler</strong></p>
  
  <pre><code>router.post('/login', function(req, res){
      // How to handle this to redirect to home page
      // I only have a GET handler for home page
  })
  </code></pre>
  
  <p>Thanks</p>