switched from uri to path
This commit is contained in:
parent
7687430549
commit
e8a11299ce
2 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ $dispatcher = \FastRoute\simpleDispatcher(function (\FastRoute\RouteCollector $r
|
|||
});
|
||||
});
|
||||
|
||||
$routeInfo = $dispatcher->dispatch($request->getMethod(), $request->getUri());
|
||||
$routeInfo = $dispatcher->dispatch($request->getMethod(), $request->getPath());
|
||||
switch ($routeInfo[0]) {
|
||||
case \FastRoute\Dispatcher::NOT_FOUND:
|
||||
$response->setContent('404 - Page not found');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue