diff --git a/config/modules_statuses.json b/config/modules_statuses.json index f5ddf995..aae2d91e 100644 --- a/config/modules_statuses.json +++ b/config/modules_statuses.json @@ -7,4 +7,4 @@ "VMSAcars": true, "Vacentral": true, "TestModule": true -} \ No newline at end of file +} diff --git a/resources/stubs/modules/route-provider.stub b/resources/stubs/modules/route-provider.stub index 2a3dbd4c..df3649c9 100644 --- a/resources/stubs/modules/route-provider.stub +++ b/resources/stubs/modules/route-provider.stub @@ -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'], ];