mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-18 02:25:05 +00:00
mvc: style change
This commit is contained in:
parent
9d6e6e5c7c
commit
fdac52231b
@ -115,7 +115,7 @@ class Router
|
||||
*/
|
||||
public function routeRequest(string $uri, array $defaults = []): Response
|
||||
{
|
||||
$path = parse_url('/'.ltrim($uri, '/'))['path'] ?? '';
|
||||
$path = parse_url('/' . ltrim($uri, '/'))['path'] ?? '';
|
||||
|
||||
if (!str_starts_with($path, $this->prefix)) {
|
||||
throw new InvalidUriException("Invalid route path: " . $uri);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user