public function getAllRouteRules(string $format = 'Craft', $siteId = null): array
    {
        return RouteMap::$plugin->routes->getAllRouteRules($format, $siteId);
    }
public function getAllRouteRules(string $format = 'Craft', $siteId = null): array
    {
        return RouteMap::$plugin->routes->getAllRouteRules($format, $siteId);
    }
public function getAllRouteRules ( string $ format = 'Craft' , $ siteId = null ) : array { return RouteMap :: $ plugin -> routes -> getAllRouteRules ( $ format , $ siteId ) ; }
Return all of the section and category route rules

@param string $format 'Craft'|'React'|'Vue'
@param int|null $siteId

@return array
Return all of the section and category route rules