Updated Route Service Provider that was mismatching API and ADMIN Section (#845)
This commit is contained in:
parent
2c539d349d
commit
b6603bd178
@ -72,7 +72,7 @@ class RouteServiceProvider extends ServiceProvider
|
||||
];
|
||||
|
||||
Route::group($config, function() {
|
||||
$this->loadRoutesFrom(__DIR__.'/../Http/Routes/web.php');
|
||||
$this->loadRoutesFrom(__DIR__.'/../Http/Routes/admin.php');
|
||||
});
|
||||
}
|
||||
|
||||
@ -82,8 +82,8 @@ class RouteServiceProvider extends ServiceProvider
|
||||
protected function registerApiRoutes(): void
|
||||
{
|
||||
$config = [
|
||||
'as' => 'admin.$LOWER_NAME$.',
|
||||
'prefix' => 'admin/$LOWER_NAME$',
|
||||
'as' => 'api.$LOWER_NAME$.',
|
||||
'prefix' => 'api/$LOWER_NAME$',
|
||||
'namespace' => $this->namespace.'\Api',
|
||||
'middleware' => ['api'],
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user