title: Slim\Exception\HttpNotFoundException
body: <p>I'm creating a new Slim project and getting the following error:
  Slim Application Error:
  The application could not run because of the following error:</p>
  
  <p>Error Details</p>
  
  <pre><code>Type: Slim\Exception\HttpNotFoundException
  Code: 404
  Message: Not found.
  File: C:\xampp\htdocs\MyApi\vendor\slim\slim\Slim\Middleware\RoutingMiddleware.php
  Line: 91
  </code></pre>
  
  <p>Trace</p>
  
  <pre><code>#0 C:\xampp\htdocs\MyApi\vendor\slim\slim\Slim\Middleware\RoutingMiddleware.php(57): Slim\Middleware\RoutingMiddleware-&gt;performRouting(Object(Slim\Psr7\Request))
  #1 C:\xampp\htdocs\MyApi\vendor\slim\slim\Slim\MiddlewareDispatcher.php(124): Slim\Middleware\RoutingMiddleware-&gt;process(Object(Slim\Psr7\Request), Object(Slim\Routing\RouteRunner))
  #2 C:\xampp\htdocs\MyApi\vendor\slim\slim\Slim\Middleware\ErrorMiddleware.php(89): class@anonymous-&gt;handle(Object(Slim\Psr7\Request))
  #3 C:\xampp\htdocs\MyApi\vendor\slim\slim\Slim\MiddlewareDispatcher.php(124): Slim\Middleware\ErrorMiddleware-&gt;process(Object(Slim\Psr7\Request), Object(class@anonymous))
  #4 C:\xampp\htdocs\MyApi\vendor\slim\slim\Slim\MiddlewareDispatcher.php(65): class@anonymous-&gt;handle(Object(Slim\Psr7\Request))
  #5 C:\xampp\htdocs\MyApi\vendor\slim\slim\Slim\App.php(174): Slim\MiddlewareDispatcher-&gt;handle(Object(Slim\Psr7\Request))
  #6 C:\xampp\htdocs\MyApi\vendor\slim\slim\Slim\App.php(158): Slim\App-&gt;handle(Object(Slim\Psr7\Request))
  #7 C:\xampp\htdocs\MyApi\public\index.php(18): Slim\App-&gt;run()
  #8 {main}
  </code></pre>
  
  <p>Here is my index.php</p>
  
  <pre><code>&lt;?php
  use Psr\Http\Message\ResponseInterface as Response;
  use Psr\Http\Message\ServerRequestInterface as Request;
  use Slim\Factory\AppFactory;
  
  require '../vendor/autoload.php';
  
  $app = AppFactory::create();
  $app-&gt;addRoutingMiddleware();
  $errorMiddleware = $app-&gt;addErrorMiddleware(true, true, true);
  
  $app-&gt;get('/hello/{name}', function (Request $request, Response $response, array $args) {
      $name = $args['name'];
      $response-&gt;getBody()-&gt;write("Hello, $name");
      return $response;
  });
  
  $app-&gt;run();
  </code></pre>
  
  <p>This might be a basic problem.But I am new.Need help please.</p>