# cartflows/3.1.3/admin-legacy-core/api/api-base.php

CartFlows – Funnel Builder &amp; Checkout Plugin for WooCommerce, version 3.1.3. 43 lines.

- Page: https://pluginprobe.com/plugins/cartflows/3.1.3/code/admin-legacy-core/api/api-base.php
- Raw: https://pluginprobe.com/plugins/cartflows/3.1.3/raw/admin-legacy-core/api/api-base.php
- Modified: 2026-04-27T17:47:56+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/cartflows/3.1.3/code/admin-legacy-core/api/api-base.php#L10-L20`.

```php
<?php
/**
 * CartFlows Admin Menu.
 *
 * @package CartFlows
 */

namespace CartflowsAdmin\AdminLegacyCore\Api;

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Class Admin_Menu.
 */
abstract class ApiBase extends \WP_REST_Controller {

	/**
	 * Endpoint namespace.
	 *
	 * @var string
	 */
	protected $namespace = 'cartflows/v1';

	/**
	 * Constructor
	 *
	 * @since 1.0.0
	 */
	public function __construct() {
	}

	/**
	 * Register API routes.
	 */
	public function get_api_namespace() {

		return $this->namespace;
	}
}

```
