# wp-parsely/3.23.6/src/rest-api/utils/class-utils-controller.php

Parse.ly, version 3.23.6. 48 lines.

- Page: https://pluginprobe.com/plugins/wp-parsely/3.23.6/code/src/rest-api/utils/class-utils-controller.php
- Raw: https://pluginprobe.com/plugins/wp-parsely/3.23.6/raw/src/rest-api/utils/class-utils-controller.php
- Modified: 2025-07-15T07:26:40+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wp-parsely/3.23.6/code/src/rest-api/utils/class-utils-controller.php#L10-L20`.

```php
<?php
/**
 * API Utils Controller
 *
 * @package Parsely
 * @since   3.20.5
 */

declare(strict_types=1);

namespace Parsely\REST_API\Utils;

use Parsely\REST_API\REST_API_Controller;
use Parsely\REST_API\Utils\Endpoint_Post;

/**
 * The Utils API Controller.
 *
 * Used to define the namespace, version, and endpoints for the Utils API.
 *
 * @since 3.20.5
 */
class Utils_Controller extends REST_API_Controller {
	/**
	 * Gets the prefix for this API route.
	 *
	 * @since 3.20.5
	 *
	 * @return string The namespace.
	 */
	public static function get_route_prefix(): string {
		return 'utils';
	}

	/**
	 * Initializes the Utils API endpoints.
	 *
	 * @since 3.20.5
	 */
	public function init(): void {
		$endpoints = array(
			new Endpoint_Post( $this ),
		);

		$this->register_endpoints( $endpoints );
	}
}

```
