title: when i submit at then time give an error 'Cannot POST /signin' but when i press 'ctrl+l' at that time data will get in nodejs
body: <pre><code>const mongoose = require('mongoose');
  var express = require('express');
  var bodyparser = require('body-parser');
  var router = express.Router();
  var db = mongoose.connection;
  
  /* GET home page. */
  router.get('/', function(req, res, next) {
      res.render('index');
  });
  
  router.use(bodyparser.json());
  router.use(bodyparser.urlencoded({extended:true}));
  
  router.post('/singin/data',function(req,res){
      console.log('post inside');
      var fname = req.body.fname;
      var lname = req.body.lname;
      var email = req.body.email;
      var password = req.body.password;
      var data = {
      'fname':fname,
      'lname':lname,
      'email':email,
      'password':password
      }
      db.collection('signup').insertOne(data,function(err,info){
      if(err) throw err;
      console.log(&quot;Inserted&quot;,info);
      });
      console.log(email);
      res.redirect('signin');
      });
  
      module.exports = router;
     
  </code></pre>
  <blockquote>
  <p><strong>in get method i get data properly but in post method i can't post
  data into database..<br />
  i create mongoose schema also in another models folder and also install mongoose also but major problem is on submit form button i get error can't post /signin</strong></p>
  </blockquote>