title: 404 Cannot POST Using Express
body: <p>I´m trying to create an API Rest in NodeJs with Express.</p>
  
  <p>I have my <strong>index.js</strong> with the following code:</p>
  
  <pre><code>const express = require('express');
  const routesV1 = require('./routes/v1/index');
  
  const app = express();
  
  routesV1(app);
  
  app.listen(4000, () =&gt; {
    console.log('Running on port: 4000');
  });
  </code></pre>
  
  <p>then i have a routes folder with another "index.js" and a "usersRoutes".</p>
  
  <p>Here´s the code of the userRoutes:</p>
  
  <pre><code>const express = require('express');
  
  const userController = require('../../controllers/v1/UserController');
  
  const router = express.Router();
  
  router.post('/create', userController.createUser);
  router.post('/update', userController.updateUser);
  router.post('/delete', userController.deleteUser);
  router.get('/get-all', userController.getUsers);
  
  module.exports = router;
  </code></pre>
  
  <p>and the code of the index.js into the routes folder:</p>
  
  <pre><code>const userRoutes = require('./UserRoutes');
  const productRoutes = require('./ProductRoutes');
  
  module.exports = app =&gt; {
    app.use('api/v1/users', userRoutes);
  };
  </code></pre>
  
  <p>but when i´m consuming via Postman, with the following url: <a href="http://localhost:4000/api/v1/users/create" rel="nofollow noreferrer">http://localhost:4000/api/v1/users/create</a> I´m receiving a 404 error code.</p>
  
  <p>Can anybody help me? thanks</p>