title: Using React Router to hit Go backend
body: <p>I am having trouble trying to do a database insert. I have React front-end and I am trying to make a POST that hits my Go back-end. The react successfully makes a post 200, but it never actually hits the Go side of things. Any ideas on what I can do to successfully hit it?</p>
  
  <p>In React I have:</p>
  
  <pre><code>postNewService = (newService) =&gt; {
      axios.post('api/add-ird/add', {newService} )
  }
  </code></pre>
  
  <p>Which hits my addIRD.js form</p>
  
  <pre><code>router.post('/add', (req, res) =&gt; {
  
      const irdObj = {
          datacenterValue: req.body.newService.dataCenter,
          irdManagementIPValue: req.body.newService.irdManagementIP,
  
      }
  
      res.json(irdObj)
  })
  
  module.exports = router
  </code></pre>
  
  <p>and then I am trying to hit my Golang code here:</p>
  
  <pre><code>func startServer(port string, services Services, stop chan os.Signal) *http.Server {
      router := mux.NewRouter()
      router.HandleFunc("/api/add-ird/add", services.createIRD).Methods("POST")
  
      srv := &amp;http.Server{Addr: fmt.Sprintf(":%v", port), Handler: router}
  
      return srv
  }
  </code></pre>
  
  <p>The problem is, it never successfully hits that route in my Go code because my function createIRD is never called. Do I need to modify my React axios post to successfully hit it? </p>