title: ActionController::RoutingError: No route matches [GET] "/"
body: <p>I have a <code>Rails API</code> which is being accessed by my <code>React</code> client-side. Every time the react application is loaded it makes a <code>get</code> request to the <code>API</code> for the path <code>/</code> and this raises the error:</p>
  
  <pre><code>ActionController::RoutingError: No route matches [GET] "/"
  </code></pre>
  
  <p>Although this doesn't really affect user interaction on the application but I would still like to remove this. </p>
  
  <p>My API has a normal path of <code>&lt;url&gt;/backend-api/v2.3.3/..</code></p>
  
  <p>I think this can be fixed by adding a <code>root</code> path on the routes but considering that the initially loaded pages on React are static and don't really need to make an API call, how can I catch this initial <code>GET /</code> and prevent the error from being raised?</p>