mirror of
https://github.com/v2board/v2board.git
synced 2025-06-16 06:37:53 +08:00
update: add v2 api
This commit is contained in:
@ -76,5 +76,16 @@ class RouteServiceProvider extends ServiceProvider
|
||||
$this->app->make('App\\Http\\Routes\\V1\\' . basename($file, '.php'))->map($router);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Route::group([
|
||||
'prefix' => '/api/v2',
|
||||
'middleware' => 'api',
|
||||
'namespace' => $this->namespace
|
||||
], function ($router) {
|
||||
foreach (glob(app_path('Http//Routes//V2') . '/*.php') as $file) {
|
||||
$this->app->make('App\\Http\\Routes\\V2\\' . basename($file, '.php'))->map($router);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user