title: DirectAdmin (web control cpanel) : Node JS Express App - App Route return 404 not found
body: <p>I have setup my Nodejs app on Cpanel <strong>Setup Node.js App</strong> plugin on my DirectAdmin web panel.</p>
  
  <pre><code>var http = require('http');
  const express = require('express');
  var app = express();
  const bodyParser = require('body-parser');
  const UserRoutes = require('./routes/user');
  var server = http.createServer(app);
  const path = require('path');
  const cors = require('cors');
  const passport = require('passport');
  app.use(cors());
  // Static file folder
  app.use(express.static(path.join(__dirname, 'public')));
  app.use(bodyParser.json());
  app.use(passport.initialize());
  app.use(passport.session());
  
  app.use('/user', UserRoutes);
  module.export = app;
  server.listen();
  </code></pre>
  
  <p>My index file is running and not showing any error, but once I hit the API route it returns me <code>Cannot GET /api/</code></p>
  
  <p>Thanks in advance :).</p>