Skip to content

Commit

Permalink
fix Router/Router.php(change api route path)
Browse files Browse the repository at this point in the history
  • Loading branch information
amirfaramarzi committed Jun 7, 2024
1 parent 88731bf commit 25efd8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Router/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ protected function addRoute(string $method , string $route , array|Closure $call
'/%s(.+?)%s/ims',
preg_quote('use ', '/'), preg_quote(';', '/')
);
if (preg_match_all($usesPattern, file_get_contents(basePath('router/router.php')), $matches)) {
if (preg_match_all($usesPattern, file_get_contents(basePath('routes/api.php')), $matches)) {
$uses = implode("\n", $matches[0])."\n\n";
}

Expand Down

0 comments on commit 25efd8e

Please sign in to comment.