set routes

@return void
964931
private function setRoutes()
    {
        foreach($this->myModules as $module) {
            $scModule = snake_case( $module, '-' );
            $subModules = config("{$scModule}.permissions");
            if ( ! is_null($subModules)) {
                foreach($subModules as $sub => $routes) {
                    $hasRoutes = array_filter(array_keys($routes['routes']),function($item)
                    {
                        return hasPermission($item);
                    });
                    if(count($hasRoutes) > 0) {
                        $this->routes[$scModule . '_' . $sub] = $routes;
                    }
                }
            }
        }
    }
829983
public function setRoutes(array $routes) {

	    foreach($routes as $route) {

	        if(!$route instanceof Route) {
	            throw new \InvalidArgumentException(sprintf("'%s' is not a Route instance.", $route));
            }

            $this->addRoute($route);

        }

    }
375803
private function setUrl() {

		$url = Router :: url($this -> identifier, $this -> params);

		if(strlen($url) > 0) {
			$url = '/' . $url;
		}

		Request :: setURI($url);
		Router :: setUrl($url);
	}
1245558
public function setRouting(array $routings = [])
    {
        $this->dispatcher = null;
        $this->routings = $routings + $this->routings;

        foreach ($this->routings as $name => &$routing) {
            if (1 == count($routing)) {
                array_unshift($routing, '/' . ltrim($name, '/'));
            }
            if (2 == count($routing)) {
                array_unshift($routing, ['GET', 'POST']);
            }
        }
    }
131284
private function setAccessControllers(): void
    {
        $this->absolutePathToAccessControllers = [];
        $route = $this->routingBasePath;

        foreach ($this->getRealArgs() as $arg)
        {
            $route .= $arg . '/';
            $path = $route . 'access.php';

            if (\is_file($path)) {
                array_unshift($this->absolutePathToAccessControllers, $path);
                break;
            }
        }
    }
965975
final protected function initRoutes()
    {
        $routes = $this->setRoutes();
        foreach ($routes as $currentRoutes) {
            foreach ($currentRoutes as $route) {
                $this->container->addRoute($route);
            }
        }
        
        return $this;
    }
605202
def set_routes():
    
    os.system("pwd")
    dir_path = Path(os.getcwd()).absolute()
    projects = get_listed_projects()
    routes = [
        [p if p[0] == "/" else "/" + p, str(dir_path) + "{}/build/html".format(p)]
        for p in projects
    ]
    os.environ["MKINX_ROUTES"] = json.dumps(routes)
528351
protected function mapApiRoutes(): void
    {
        $file = $this->basePath.'routes/api.php';

        if (file_exists($file)) {
            $this->loadRoutesFrom(
            Route::prefix('api')
                ->middleware('api')
                ->group($file));
        }
    }
151244
private function addRoutes()
    {
        if (class_exists($Router = 'Josantonius\Router\Router')) {
            if (isset($this->complement['routes'])) {
                $Router::add($this->complement['routes']);
            }
        }
    }
170776
protected function mapRoutes()
    {
        if (!$this->app->routesAreCached()) {
            Route::group(
                ['middleware' => ['web']], function () {
                    $routes = new Routes();

                    // Backend Routes
                    $routes->mapBackendRoutes()
                        ->mapPluginsBackendRoutes();

                    // Frontend Routes
                    $routes->mapFrontendBaseRoutes()
                        ->mapFrontendRoutes()
                        ->mapThemeRoutes()
                        ->mapPluginsFrontendRoutes();

                    // Add Language {lang} prefix
                    $routes->addLanguagePrefix()
                        ->sortRoutes();
                }
            );
        }
    }
897397
public function addRoutes($routes)
	{
		foreach ($routes as $route) {
			foreach (explode('|', $route[0]) as $method) {
				$this->routes[$method][] = array(
					'pattern' => $route[1],
					'callable' => $route[2]
				);
			}
		}
	}
25150
protected function mapRoutes()
    {
        $this->app['events']->listen('kernel.handling', function () {
            // Gatilho para arquivo routes.php
            $file_route = app_path('routes.php');
            if (files()->exists($file_route)) {
                require $file_route;
            }

            // Web
            router()->group(['middleware' => ['web']], function (Router $router) {
                event()->fire(new PublicRegisterRoutes($router));
                event()->fire(new PublicTenantRegisterRoutes($router));
                event()->fire(new PrivateRegisterRoutes($router));
            });

            // Api
            router()->group(['middleware' => ['api'], 'prefix' => 'api'], function (Router $router) {
                event()->fire(new ApiRegisterRoutes($router));
            });
        });
    }
870592
public function set($route)
    {
        if ($route instanceof Group) {
            foreach ($route->all() as $r)
                $this->routes[] = $r;
        } else  $this->routes[] = $route;
        return  $this;
    }
635489
public function setAdapterRoutes(array $routes)
    {
        $this->adapter->setRoutes($routes);

        $this->container->instance('api.routes', $this->getRoutes());
    }
207827
public function registerRoutes()
    {
        if ($this->app->routesAreCached()) {
            return;
        }

        Route::domain((string) config('platform.domain'))
            ->prefix(Dashboard::prefix('/press'))
            ->as('platform.')
            ->middleware(config('platform.middleware.private'))
            ->group(realpath(PLATFORM_PATH.'/routes/press.php'));
    }
1317097
protected function setPaths()
    {
        $pathPackage = realpath(__DIR__.'/../../../../');
        $pathBase = realpath(base_path());

        // Set CLI path.
        $this->pathCli = $pathBase.'/vendor/bin/'.$this::CLI_TOOL;
        if (!file_exists($this->pathCli)) {
            $this->pathCli = $pathPackage.'/vendor/bin/'.$this::CLI_TOOL;
        }

        // Set ruleset paths.
        $this->pathRulesetStock = $pathPackage.'/rulesets/'.$this::CLI_TOOL.'.xml';
        $this->pathRulesetLocal = $pathBase.'/'.$this::CLI_TOOL.'.xml';
        $this->pathRulesetLocalLegacy = $pathBase.'/app/'.$this::CLI_TOOL.'.xml';

        // Set active ruleset.
        $this->pathRuleset = $this->pathRulesetStock;
        if (is_readable($this->pathRulesetLocal)) {
            $this->pathRuleset = $this->pathRulesetLocal;
        } elseif (is_readable($this->pathRulesetLocalLegacy)) {
            $this->pathRuleset = $this->pathRulesetLocalLegacy;
        }
    }
355833
public function map()
    {
        Route::namespace($this->namespace)->group(function (Router $router) {

            /*
             * Admin routes
             */
            $router->middleware('admin')->prefix('admin')->group(function (Router $router) {
                $router->get('dashboard', 'AdminController@dashboard')->name('dashboard')->middleware('can:see-dashboard');
                $router->get('', 'AdminController@index')->middleware('can:see-dashboard');
            });
        });
    }