title: Access Laravel API from a Laravel Nova custom tool
body: <p>I have created a new tool within Nova and I have to access my laravel api defined in <code>/routes/api.php</code> not the one in <code>nova-components/component-name/routes/api.php</code></p>
  
  <p>My code within the Vue component looks like this:</p>
  
  <pre><code>getCertificateTypes() {
      Nova.request().get('/api/certificate-type')
         .then(response =&gt; {
             // my code
         });
  },
  </code></pre>
  
  <p>This returns a 401 Unauthorized</p>
  
  <p>This is what I tried so far:</p>
  
  <p>Added this code to my routes() function in the ServiceProvider of the tool created</p>
  
  <pre><code>Route::middleware(['nova', Authorize::class])
          -&gt;prefix('laravel')
          -&gt;group(__DIR__.'/../../../routes/api.php');
  </code></pre>
  
  <p>Now, if I call <code>Nova.request().get('/laravel/api/certificate-type')</code> I get a 404 not found.</p>
  
  <p>What am I missing here?</p>