title: Ajax call giving 404 in Lumen 5.3
body: <p>I have a super simple test env that makes an ajax call to one of my controllers in Lumen 5.3, but I'm getting a 404. From what I gather from the docs, this should work:</p>
  
  <h3>routes.php</h3>
  
  <pre><code> $app-&gt;post('login', 'LoginController@index');
  </code></pre>
  
  <h3>LoginController.php</h3>
  
  <pre><code>namespace App\Http\Controllers;
  
  class LoginController extends Controller {
  
      public function index() {
          return response()-&gt;json(['success' =&gt; true], 200);
      }
  
  }
  </code></pre>
  
  <h3>index.blade.php</h3>
  
  <pre><code>$('#sign-in').on('click', function () {
      $.post('login', function (data) {
          console.log(data);
      }).done(function () {
          console.log('Ajax call complete');
      }).fail(function (error) {
          console.log(error.status); // gives 404
      });
  });
  </code></pre>