title: React ,get 404 when trying to connect localhost to my routs file
body: <p>trying to connect to my react app from my local host.
  trying to get from this <a href="http://localhost:8080/api/Data_Schedules" rel="nofollow noreferrer">http://localhost:8080/api/Data_Schedules</a>
  I'm getting 404</p>
  
  <p>this is the code that im trying to get:</p>
  
  <p>routs.ts</p>
  
  <pre><code>import * as express from 'express';
  import DB from './db';
  
  const router = express.Router();
  router.get('localhost:8080/api/Data_Schedules',async(req, res)=&gt;{
      try{
          let Data_Schedules = await DB.Data_Schedules.all();
          res.json(Data_Schedules)
      }
      catch(e){
          res.sendStatus(500);
      }
  })
  
  export default router;
  </code></pre>