AMP_Cart_Controller::register_routes()

Summary

Init endpoint.


Return

(void)


Source

File: src/BigCommerce/Proxy/AMP_Cart_Controller.php

	public function register_routes() {
		$public_args = [
			'methods'             => WP_REST_Server::READABLE,
			'callback'            => [ $this, 'get_items' ],
			'permission_callback' => '__return_true',
		];

		register_rest_route( $this->proxy_base, '/amp-cart/', $public_args );
	}

User Contributed Notes

You must log in before being able to contribute a note or feedback.