Map the routes for the application.
551595
public function map()
    {
        $this->prefix('statuses')->as('statuses.')->group(function () {
            $this->get('/', 'StatusesController@index')
                 ->name('index');  // admin::backups.statuses.index

            $this->post('backup', 'StatusesController@backup')
                 ->middleware('ajax')
                 ->name('backup'); // admin::backups.statuses.backup

            $this->post('clear', 'StatusesController@clear')
                 ->middleware('ajax')
                 ->name('clear');  // admin::backups.statuses.clear

            $this->get('{index}', 'StatusesController@show')
                 ->name('show');   // admin::backups.statuses.clear
        });
    }
749938
protected function mapAdminRoutes()
    {
        $this->prefix($this->config()->get('arcanesoft.media.route.prefix', 'media'))
             ->name('media.')
             ->group(function () {
                 Routes\Admin\MediaRoutes::register();
                 Routes\Admin\ApiRoutes::register();
             });
    }
284977
function mapRoutes(msg, done) {
  var seneca = this
  var adapter = msg.adapter || locals.adapter
  var context = msg.context || locals.context
  var options = msg.options || locals.options
  var routes = Mapper(msg.routes)
  var auth = msg.auth || locals.auth

  // Call the adaptor with the mapped routes, context to apply them to
  // and instance of seneca and the provided consumer callback.
  adapter.call(seneca, options, context, auth, routes, done)
}
1050418
def render_applicationNavigation(self, ctx, data):
        
        return applicationNavigation(
            ctx, self.translator, self.pageComponents.navigation)
767273
public function map()
    {
        Route::namespace($this->namespace)->group(function (Router $router) {

            /*
             * Front office routes
             */
            if ($page = TypiCMS::getPageLinkedToModule('news')) {
                $router->middleware('public')->group(function (Router $router) use ($page) {
                    $options = $page->private ? ['middleware' => 'auth'] : [];
                    foreach (locales() as $lang) {
                        if ($page->translate('status', $lang) && $uri = $page->uri($lang)) {
                            $router->get($uri, $options + ['uses' => 'PublicController@index'])->name($lang.'::index-news');
                            $router->get($uri.'.xml', $options + ['uses' => 'PublicController@feed'])->name($lang.'::news-feed');
                            $router->get($uri.'/{slug}', $options + ['uses' => 'PublicController@show'])->name($lang.'::news');
                        }
                    }
                });
            }

            /*
             * Admin routes
             */
            $router->middleware('admin')->prefix('admin')->group(function (Router $router) {
                $router->get('news', 'AdminController@index')->name('admin::index-news')->middleware('can:see-all-news');
                $router->get('news/create', 'AdminController@create')->name('admin::create-news')->middleware('can:create-news');
                $router->get('news/{news}/edit', 'AdminController@edit')->name('admin::edit-news')->middleware('can:update-news');
                $router->post('news', 'AdminController@store')->name('admin::store-news')->middleware('can:create-news');
                $router->put('news/{news}', 'AdminController@update')->name('admin::update-news')->middleware('can:update-news');
            });

            /*
             * API routes
             */
            $router->middleware('api')->prefix('api')->group(function (Router $router) {
                $router->middleware('auth:api')->group(function (Router $router) {
                    $router->get('news', 'ApiController@index')->middleware('can:see-all-news');
                    $router->patch('news/{news}', 'ApiController@updatePartial')->middleware('can:update-news');
                    $router->delete('news/{news}', 'ApiController@destroy')->middleware('can:delete-news');

                    $router->get('news/{news}/files', 'ApiController@files')->middleware('can:update-news');
                    $router->post('news/{news}/files', 'ApiController@attachFiles')->middleware('can:update-news');
                    $router->delete('news/{news}/files/{file}', 'ApiController@detachFile')->middleware('can:update-news');
                });
            });
        });
    }
673881
def make_map(config):
    """"""
    map = Mapper(directory=config['pylons.paths']['controllers'],
                 always_scan=config['debug'])
    map.minimization = False
    map.explicit = False

    # The ErrorController route (handles 404/500 error pages); it should
    # likely stay at the top, ensuring it can always be resolved
    map.connect('/error/{action}', controller='error')
    map.connect('/error/{action}/{id}', controller='error')

    # CUSTOM ROUTES HERE
    map.connect('/{controller}')
    map.connect('/{controller}/{action}')
    map.connect('/{controller}/{action}/{id}')

    map.connect('/', controller='prefix', action='index')

    return map
1340302
protected function mapWebRoutes() {

		include_once base_path('routes/configurations.php');

		Route::middleware(['web'])
			->namespace($this->namespace)
			->group(base_path('routes/admin.php'));

		Route::middleware(['web'])
			->namespace($this->namespace)
			->group(base_path('routes/web.php'));

	}
694225
protected function routes()
    {
        if ($this->app->routesAreCached()) {
            return;
        }

        Route::middleware(['nova', 'api', Authorize::class])
            ->prefix('nova-vendor/spatie/nova-tags-field')
            ->group(__DIR__.'/../routes/api.php');
    }
1154375
def add_routes(self, routes: Iterable[AbstractRouteDef]) -> None:
        
        for route_def in routes:
            route_def.register(self)
903452
protected function defineRoutes()
    {
        if (!$this->app->routesAreCached()) {
            $router = app('router');
            $this->defineWebRoutes($router);
            $this->defineApiRoutes($router);
        }
    }
475538
function bindRoutes (poet) {
  var app = poet.app;
  var routes = poet.options.routes;

  // If no routes specified, abort
  if (!routes) return;

  Object.keys(routes).map(function (route) {
    var type = utils.getRouteType(route);
    if (!type) return;

    app.get(route, routeMap[type](poet, routes[route]));
  });
}
560396
public function map($route, $handler)
    {
        $this->_routes[] = ['/'.$route, $handler];

        if ($handler) {
            $this->_handlers[$handler][] = '/'.$route;
        }
    }
807868
def options(self, route: str(), callback: object()):
        
        self.__set_route('options', {route: callback})
        return RouteMapping
269203
private function registerRoutes()
    {
        collect(($routes = $this->getRoutes()))->each(function ($route) {
            $this->registerRoute($route);
        });

        $this->registerResourcesRoutes();
    }
1206824
protected function mapRoute(): Controller
    {
        foreach ($this->routes['get'] as $pattern => $func) {
            $this->mapStaticRoutes($pattern, $func);
        }

        foreach ($this->routes['post'] as $pattern => $func) {
            $this->mapStaticRoutes($pattern, $func, 'post');
        }

        return $this;
    }
902832
private function buildRoutes(): void
    {
        if ($this->loaded['routes']) {
            return;
        }

        $this->loaded['routes'] = true;

        $this->routes = new RouteCollection(
            $this->getBaseCodeRoute(),
            $this->getBaseRouteName(),
            $this->getBaseRoutePattern(),
            $this->getBaseControllerName()
        );

        $this->routeBuilder->build($this, $this->routes);

        $this->configureRoutes($this->routes);

        foreach ($this->getExtensions() as $extension) {
            $extension->configureRoutes($this, $this->routes);
        }
    }
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');
            });
        });
    }