AnsPress_API::register()

Description #

Register REST route.

Source #

File: includes/api.php

	public static function register() {
		register_rest_route(
			'anspress',
			'/user/avatar',
			array(
				'methods'  => 'GET',
				'callback' => array( 'AnsPress_API', 'avatar' ),
			)
		);
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment