title: NodeJS '/' home route is working but the remaining routes are not working (CPanel Shared Hosting)
body: <p>I have a problem when I deploy my NodeJS API on CPANEL shared hosting.
  My application is working very well on localhost but when I deploy it, the home route is the only one working, all remaining routes are not working (500 Internal error). I use Express.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>const express = require('express');
  const cors = require('cors');
  const app = express();
  require('dotenv').config();
  
  // Import Routes
  const productsRoute = require('./routes/products');
  
  // Middleware
  const corsOpts = {
    origin: '*',
  
    methods: ['GET', 'POST', 'PUT', 'DELETE'],
  
    allowedHeaders: ['Content-Type'],
  };
  
  app.use(cors(corsOpts));
  app.use(express.urlencoded({ extended: true }));
  app.use(express.json());
  
  
  app.use('/products', productsRoute);
  app.get('/hello', (req, res) =&gt; res.send('Hello World !'));
  app.get('/', (req, res) =&gt; {
    res.send("OK");
  });
  
  app.listen();</code></pre>
  </div>
  </div>
  </p>
  <p><a href="https://i.stack.imgur.com/mrha7.jpg" rel="nofollow noreferrer">Cpanel configuration</a></p>
  <p>Can somebody Help me please ?</p>
  <p>Thank you !</p>