title: Why is router.post(..) not see and router.get(...) works fine?
body: <p>I have a large express app that I have moved to node 7 and transforming the front end using Angular 2.  </p>
  
  <p>All seems to be working, except.... the router.post(...) calls.<br>
  All the router.get(...) routes work correctly.  BUT the router.post(...) routes all respond with 404's.</p>
  
  <p>A sample of the routing is as follows: </p>
  
  <pre><code> &lt;routes.js&gt;
    'use strict';
  
    import errors from './components/errors';
    import path from 'path';
  
    export default function(app) {
      // Insert routes below
      app.use('/api/logins', require('./api/login'));
      app.use('/api/users', require('./api/user'));
      app.use('/api/version', require('./api/version'));
      ...
  
      app.use('/auth', require('./auth'));
  
      // All undefined asset or api routes should return a 404
      app.route('/:url(api|auth|components|app|bower_components|assets)/*')
       .get(errors[404]);
  
      // All other routes should redirect to the index.html
      app.route('/*')
        .get((req, res) =&gt; {
          res.sendFile(path.resolve(app.get('appPath') + '/index.html'));
        });
    }
  </code></pre>
  
  <p>and for example for </p>
  
  <pre><code>'use strict';
  
  let express = require('express');
  let router = express.Router();
  let controller = require('./user.controller');
  let auth = require('../../auth/auth.service');
  
  router.post('/',  auth.hasRole('admin'), controller.create);
  router.get('/', auth.hasRole('admin'), controller.index);
  router.get('/clean', auth.hasRole('admin'), controller.cleanDatabase);     
  router.get('/user/:sharingFromUserId', auth.isAuthenticated(), controller.getUserSharingFromUser);
  ....
  </code></pre>
  
  <p>Yet when I do post I see:</p>
  
  <pre><code>POST http://localhost:9000/users/ 404 (Not Found)
  </code></pre>
  
  <p>One strange hint in Intellij, suggests that the route.post() is not the correct function???? In the editor, the IDE seems to imply that this is the AuthHttp.post() function which is being used in the webpack section of the frontend.   How can this be??? </p>