score:0

Accepted answer
//Endpoints
app.get('/getallemployees/', ctrl.getAllEmployees)

app.get('/*', function(req, res) {
   res.sendFile(path.join(__dirname, './../build/index.html'), function(err) {
      if (err) {
        res.status(500).send(err)
      }
    })
  })

Related Query

More Query from same tag