1.routes 目录下面创建 finance.php文件
use Illuminate\Support\Facades\Route;
//操作记录
Route::group(['namespace' => 'Api\Finance', 'middleware' => ['throttle:60,1']], function () {
});
2.Providers目录下RouteServiceProvider
public function map ()
{
$this->mapFinanceRouters();
}
//财务模块
protected function mapFinanceRouters ()
{
Route::prefix('api/finance')
->middleware('api')
->namespace($this->namespace)
->group(base_path('routes/finance.php'));
}