Register routes.

@param $router
762575
public function registerRoute($router)
    {
        if (!$this->app->routesAreCached()) {
            $router->group(
                array_merge(
                    ['namespace' => __NAMESPACE__],
                    config('wangeditor.route.options'
                    )
                ), function ($router) {
                $router->any(
                    config('wangeditor.route.url', '/wangeditor/server'),
                    'WangEditorController@serve'
                );
            });
        }
    }
1275482
public function registerRoute (Route $route, $routeIdentifier = null)
		{
			if (! $routeIdentifier) {
				$routeIdentifier = uniqid();
			}

			$this->routes[$routeIdentifier] = $route;
		}
533464
public function map(Router $router)
    {
        $router->group(['namespace' => $this->namespace, 'as' => 'core::'], function (Router $router) {
            $path = app_path('Http/Routes');

            $applyAlwaysAuthenticate = $this->app['config']->get('setting.always_authenticate', false);
            $AllFileIterator = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($path));
            $PhpFileIterator = new \RegexIterator($AllFileIterator, '/^.+\.php$/i', \RecursiveRegexIterator::GET_MATCH);

            foreach ($PhpFileIterator as $file => $object) {
                $class = substr($file, strlen($path));
                $class = str_replace('/', '\\', $class);
                $class = substr($class, 0, -4);

                $routes = $this->app->make("CachetHQ\\Cachet\\Http\\Routes${class}");

                if ($routes::$browser) {
                    $this->mapForBrowser($router, $routes, $applyAlwaysAuthenticate);
                } else {
                    $this->mapOtherwise($router, $routes, $applyAlwaysAuthenticate);
                }
            }
        });
    }
927768
public function registerSubRoutes()
    {
        if (!is_array($this->subAdmin)) {
            return;
        }

        foreach ($this->subAdmin as $adminItem) {
            $this->registerRoute($adminItem->getController(), $adminItem->routeParameters());
        }
    }
659734
public function boot(Router $router)
    {
        $this->defineRoutes($router);

        $this->loadViewsFrom(__DIR__.'/../resources/views', 'warden');
        $this->publishes([
            __DIR__.'/../resources/views' => base_path('resources/views/vendor/warden'),
        ], 'views');
        $this->publishes([
            __DIR__.'/../config/config.php' => config_path('kregel/warden.php'),
        ], 'config');
    }
276043
protected function loadRoutes(Router $router): void
    {
        foreach ($this->getRoutes() as $route) {
            $router->namespace($this->namespace)
                ->group($route);
        }
    }
44093
protected function registerRoute()
    {
        /** @var \Illuminate\Routing\Router $router */
        $router = $this->app['router'];
        $router->group(['prefix' => admin_prefix(), 'middleware' => 'administrator'], function () use ($router) {
            $router->get('themes', ThemesController::class . '@index')->name('administrator.themes.index');
            $router->get('themes/create', ThemesController::class . '@create')->name('administrator.themes.create');
            $router->post('themes', ThemesController::class . '@store')->name('administrator.themes.store');
            $router->get('themes/{theme}', ThemesController::class . '@edit')->name('administrator.themes.edit');
            $router->put('themes/{theme}', ThemesController::class . '@update')->name('administrator.themes.update');
            $router->delete('themes/{theme}', ThemesController::class . '@destroy')
                   ->name('administrator.themes.destroy');
        });
    }
835324
protected function registerRouteMiddleware(Router $router, Kernel $kernel)
    {


        foreach ((array) $this->middleware as $middleware) {
            $kernel->pushMiddleware($middleware);
        }
        foreach ((array) $this->middlewareGroups as $key => $middleware) {
            $router->middlewareGroup($key, $middleware);
        }

        $moduleName                         = $this->resolveModuleName();
        $this->routeMiddleware[$moduleName] = FormMiddleware::class;
        if (empty($this->routeMiddleware) && isset($this->routeGroup) && $this->routeGroup !== 'app') {
            $router->aliasMiddleware($moduleName, ModuleMiddleware::class);
        } else {
            foreach ((array) $this->routeMiddleware as $key => $middleware) {
                $router->aliasMiddleware($key, $middleware);
            }
        }
    }
65591
protected function registerRouteMiddleware()
    {
        // register route middleware.
        foreach ($this->routeMiddleware as $key => $middleware) {
            app('router')->aliasMiddleware($key, $middleware);
        }

        // register middleware group.
        foreach ($this->middlewareGroups as $key => $middleware) {
            app('router')->middlewareGroup($key, $middleware);
        }
    }
1091320
public function map(Router $router)
    {
        $router->group(['namespace' => $this->namespace], function (Router $router) {
            /*
             * Admin routes
             */
            $router->resource('admin/menus.menulinks', 'AdminController');
            $router->post(
                'admin/menulinks/sort',
                ['as' => 'admin.menulinks.sort', 'uses' => 'AdminController@sort']
            );

            /*
             * API routes
             */
            $router->resource('api/menulinks', 'ApiController');
        });
    }
904917
protected function registerRouter()
    {
        $this->app->singleton('router', function (Application $app) {
            return new Router($app->make('events'), $app);
        });
    }
255943
protected function registerCustomRoutes()
    {
        if (file_exists($file = $this->getBootstrapPath('routes.php'))) {
            $this->registerRoutes(function (Router $route) use ($file) {
                require $file;
            });
        }
    }
472277
public function setupRoutes(Router $router)
    {
        $router->group(['namespace' => 'LuisMareze\GeoManager\app\Http\Controllers'], function ($router) {
            // Admin Interface Routes
            Route::group(['middleware' => ['web', 'admin'], 'prefix' => 'admin'], function () {
                // LuisMareze\GeoManager routes
                Route::get('geo/create/{template}', 'Admin\GeoCrudController@create');
                Route::get('geo/{id}/edit/{template}', 'Admin\GeoCrudController@edit');

                // This triggered an error before publishing the GeoTemplates trait, when calling Route::controller();
                // CRUD::resource('geo', 'Admin\GeoCrudController');

                // So for GeoCrudController all routes are explicitly defined:
                Route::get('geo/reorder', 'Admin\GeoCrudController@reorder');
                Route::get('geo/reorder/{lang}', 'Admin\GeoCrudController@reorder');
                Route::post('geo/reorder', 'Admin\GeoCrudController@saveReorder');
                Route::post('geo/reorder/{lang}', 'Admin\GeoCrudController@saveReorder');
                Route::get('geo/{id}/details', 'Admin\GeoCrudController@showDetailsRow');
                Route::get('geo/{id}/translate/{lang}', 'Admin\GeoCrudController@translateItem');
                Route::resource('geo', 'Admin\GeoCrudController');
            });
        });
    }
617808
public function registerRoutes()
    {
        $this->_route = new Route();
        $this->_config = Config::from('app');

        $router = $this; // MUST KEEP!!!!!!!!!

        require_once $this->_config->from('app')->get('routes');
    }
1309988
protected function loadRoutes(Router $router)
    {
        $router->group([
            'namespace' => $this->namespace,
            'middleware' => config('forum.frontend.middleware'),
            'as' => config('forum.routing.as'),
            'prefix' => config('forum.routing.prefix')
        ], function ($router) {
            Forum::routes($router);
        });
    }
749583
protected function registerRoutes()
    {
        $router = $this->app['FluxBB\Web\Router'];

        $this->registerFrontendRoutes($router);
        $this->registerApiRoutes($router);
    }
466729
public function mapWebRoutes(Router $router)
    {
        foreach ($this->modules as $module) {
            $module->mapWebRoutes($router);
        }
    }