WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\API

Themes::register_routes() public WC 1.0

Register routes.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of Themes::register_routes() WC 5.3.0

<?php
public function register_routes() {
	register_rest_route(
		$this->namespace,
		'/' . $this->rest_base,
		array(
			array(
				'methods'             => \WP_REST_Server::EDITABLE,
				'callback'            => array( $this, 'upload_theme' ),
				'permission_callback' => array( $this, 'upload_theme_permissions_check' ),
				'args'                => $this->get_collection_params(),
			),
			'schema' => array( $this, 'get_public_item_schema' ),
		)
	);
}