prefix('/api/user') ->namespace($this->namespace . '\API\User') ->group(base_path('routes/api.php')); Route::middleware(['api'])->prefix('/api/admin') ->namespace($this->namespace . '\API\Admin') ->group(base_path('routes/api-admin.php')); Route::middleware(['web', 'auth', 'csrf']) ->namespace($this->namespace . '\Base') ->group(base_path('routes/base.php')); Route::middleware(['web', 'auth', 'admin', 'csrf'])->prefix('/admin') ->namespace($this->namespace . '\Admin') ->group(base_path('routes/admin.php')); Route::middleware(['web', 'csrf'])->prefix('/auth') ->namespace($this->namespace . '\Auth') ->group(base_path('routes/auth.php')); Route::middleware(['web', 'csrf', 'auth', 'server', 'subuser'])->prefix('/server/{server}') ->namespace($this->namespace . '\Server') ->group(base_path('routes/server.php')); Route::middleware(['daemon'])->prefix('/api/remote') ->namespace($this->namespace . '\API\Remote') ->group(base_path('routes/api-remote.php')); Route::middleware(['web', 'daemon-old'])->prefix('/daemon') ->namespace($this->namespace . '\Daemon') ->group(base_path('routes/daemon.php')); } }