Skip to content

Commit

Permalink
refactor: rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad-Alavi committed Jan 9, 2025
1 parent 9dccb5c commit c372856
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Foundation/Apiato.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public function commands(): array
return $this->commandPaths;
}

public function registerRoutes(): void
public function registerApiRoutes(): void
{
$this->routing->registerApiRoutes();
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Support/Doubles/Fakes/Laravel/bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
->withEvents($apiato->events())
->withRouting(
web: $apiato->webRoutes(),
then: static fn () => $apiato->registerRoutes(),
then: static fn () => $apiato->registerApiRoutes(),
)
->withMiddleware(function (Middleware $middleware) use ($apiato) {
$middleware->api($apiato->apiMiddlewares());
Expand Down

0 comments on commit c372856

Please sign in to comment.