芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/reginaeigbe.com/folder/admin/tmp/app/Providers/RouteServiceProvider.php
mapUpdateRoutes(); } elseif (config('app.installed')) { $this->mapApiRoutes(); $this->mapAdminRoutes(); $this->mapAuthRoutes(); $this->mapWebRoutes(); } else { $this->mapInstallRoutes(); } } /** * Define your route model bindings, pattern filters, and other route configuration. */ public function boot(): void { RateLimiter::for('api', function (Request $request) { return Limit::perMinute(60)->by($request->user()?->id ?: $request->ip()); }); } /** * Map api route */ protected function mapApiRoutes(): void { Route::middleware('api') ->prefix('api') ->group(base_path('routes/api.php')); } /** * Map web route */ protected function mapWebRoutes(): void { Route::middleware('web') ->group(base_path('routes/web.php')); } /** * Map auth route */ protected function mapAuthRoutes(): void { Route::middleware('web', 'inertia:admin') ->prefix('auth') ->group(base_path('routes/auth.php')); } /** * Map admin route */ protected function mapAdminRoutes(): void { Route::middleware('web', 'inertia:admin', 'auth') ->name('admin.') ->prefix('admin') ->group(base_path('routes/admin.php')); } /** * Map install route */ protected function mapInstallRoutes(): void { Route::middleware('web') ->group(base_path('routes/install.php')); } /** * Map update route * * @return void */ protected function mapUpdateRoutes(): void { Route::middleware('web') ->group(base_path('routes/update.php')); } }