I need your help concerning routes in node.js. All newly created routes work fine locally, but not on the remote server after pushing changes. Other urls are still working.

Below is the middleware to capture 404 errors: 

```
// All new routes fall here
app.all('*', function (req, res) {
    res.status(404).json({
        error: 'Not Found'
    });
});

```

I can confirm that I verified all the config files and I don't know why this is happening. 

Could someone explain this to me? Maybe I missed something between local and remote?