title: Laravel API Route Not Found
body: <p>I'm trying to test an API route, but I always get <code>404 Not Found</code>.</p>
  
  <p>I'm using this command:</p>
  
  <pre><code>curl http://localhost:8000/api/veip
  </code></pre>
  
  <p>This is my <code>routes/api.php</code></p>
  
  <pre><code>&lt;?php
  
  use Illuminate\Http\Request;
  
  Route::get('/veip', function () {
      return 'Hello World';
  });
  </code></pre>
  
  <p>And this is my <code>php artisan route:list</code> output:</p>
  
  <pre><code>+--------+----------+----------+------+---------+------------+
  | Domain | Method   | URI      | Name | Action  | Middleware |
  +--------+----------+----------+------+---------+------------+
  |        | GET|HEAD | /        |      | Closure | web        |
  |        | GET|HEAD | api/veip |      | Closure | api        |
  +--------+----------+----------+------+---------+------------+
  </code></pre>
  
  <p>So the route does exists </p>
  
  <p>I don't know what's going on here...</p>