title: NodeJs Express routes not working
body: <p>I only got <code>/</code> route to work. From what I see most problems like mine are that routers are mounted to some path like <code>/auth</code> or <code>/user</code>. Now I tested my default router that is mounted to <code>/</code> and its still not working. This is my code:</p>
  
  <pre><code>import indexRouter from './routes/index'
  app.use('/',indexRouter);
  </code></pre>
  
  <p>and in my routes/index</p>
  
  <pre><code>import { Router } from 'express';
  const router = Router();
  
  router.get('/',(req,res)=&gt;{
    res.send(true);
  })
  
  router.get('ping',(req,res)=&gt;{
    res.send('pong')
  })
  
  export default router;
  </code></pre>
  
  <p>when I visit <code>/</code> its working, and <code>ping</code> is not working.</p>