芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/myvyralapp.com/bck/app/Providers/RouteServiceProvider.php
configureRateLimiting(); $this->routes(function () { Route::middleware('api') ->prefix('api') ->group(base_path('routes/api/api.php')); Route::middleware('api') ->prefix('merchant-api') ->group(base_path('routes/api/merchant_api.php')); Route::middleware('web') ->group(base_path('routes/web.php')); Route::middleware(['web','auth','verification.guard','user.google.two.factor']) ->group(base_path('routes/user.php')); Route::middleware(['web', 'auth:admin', 'app.mode', 'admin.role.guard']) ->group(base_path('routes/admin.php')); Route::middleware(['web','auth:merchant','verification.guard.merchant','merchant.google.two.factor']) ->group(base_path('routes/merchant.php')); Route::middleware('web') ->group(base_path('routes/auth.php')); Route::middleware('web') ->group(base_path('routes/global.php')); Route::middleware('api') ->group(base_path('routes/payment-gateway/qr_pay/v1/routes.php')); $this->mapInstallerRoute(); }); } /** * Configure the rate limiters for the application. * * @return void */ protected function configureRateLimiting() { RateLimiter::for('api', function (Request $request) { return Limit::perMinute(60)->by($request->user()?->id ?: $request->ip()); }); } /** * Configure/Place installer routes. * * @return void */ protected function mapInstallerRoute() { if(file_exists(base_path('resources/installer/src/routes/web.php'))) { Route::middleware('web') ->group(base_path('resources/installer/src/routes/web.php')); } } }