title: Laravel: catch all routes where the path does not start with api
body: <p>I use <a href="https://github.com/iliyaZelenko/laravel-vue-cli-3" rel="noreferrer">this</a> starter <code>Laravel + Vue SPA</code> where I have such a router in web.php:</p>
  
  <pre><code>Route::get('/{any}', 'SpaController@index')-&gt;where('any', '.*');
  </code></pre>
  
  <p>But when I make a request for an api with a nonexistent url, I would like to return a response via</p>
  
  <pre><code>Route::fallback(function() {
      return response()-&gt;json(['message' =&gt; 'Not Found!'], 404);
  });
  </code></pre>
  
  <p>This route does not work and instead of it the request goes to this route:</p>
  
  <pre><code>Route::get('/{any}', 'SpaController@index')-&gt;where('any', '.*');
  </code></pre>
  
  <p>I understand I need to change <code>-&gt;where('any', '.*');</code> but not sure how.</p>