WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\StoreApi

RoutesController::register_routes() public WC 1.0

Register defined list of routes with WordPress.

{} It's a method of the class: RoutesController{}

No Hooks.

Return

null. Nothing.

Usage

$RoutesController = new RoutesController();
$RoutesController->register_routes();

Code of RoutesController::register_routes() WC 5.7.1

public function register_routes() {
	foreach ( $this->routes as $route ) {
		register_rest_route(
			$route->get_namespace(),
			$route->get_path(),
			$route->get_args()
		);
	}
}