update: route

This commit is contained in:
v2board 2023-06-13 18:43:48 +08:00
parent 4c97d7e429
commit 5ee58f32ca

View File

@ -72,7 +72,7 @@ class RouteServiceProvider extends ServiceProvider
'middleware' => 'api', 'middleware' => 'api',
'namespace' => $this->namespace 'namespace' => $this->namespace
], function ($router) { ], function ($router) {
foreach (glob(app_path('Http//Routes') . '/*.php') as $file) { foreach (glob(app_path('Http//Routes//V1') . '/*.php') as $file) {
$this->app->make('App\\Http\\Routes\\V1\\' . basename($file, '.php'))->map($router); $this->app->make('App\\Http\\Routes\\V1\\' . basename($file, '.php'))->map($router);
} }
}); });