make apis first & consolidate to a single method

https://laracasts.com/discuss/channels/code-review/laravel-8-route-problem
This commit is contained in:
Ahmed Sayed 2022-04-12 13:36:42 +02:00 committed by GitHub
parent 703f7b037b
commit 7186bca1c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -119,8 +119,10 @@ public function boot()
{
$this->configureRateLimiting();
$this->mapWebRoutes();
$this->mapApiRoutes();
$this->routes(function () {
$this->mapApiRoutes();
$this->mapWebRoutes();
});
}
```