# cookiez/trunk/modules/script/classes/route-base.php

Cookie Consent – GDPR &amp; CCPA Cookie Banner &amp; Consent Manager, version trunk. 36 lines.

- Page: https://pluginprobe.com/plugins/cookiez/trunk/code/modules/script/classes/route-base.php
- Raw: https://pluginprobe.com/plugins/cookiez/trunk/raw/modules/script/classes/route-base.php
- Modified: 2026-05-18T12:03:54+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/cookiez/trunk/code/modules/script/classes/route-base.php#L10-L20`.

```php
<?php

namespace Cookiez\Modules\Script\Classes;

use Cookiez\Classes\Rest\Route;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Class Route_Base
 * Base class for cookie REST endpoints
 */
class Route_Base extends Route {
	protected bool $override = false;
	protected $auth = true;
	protected string $path = '';

	public function get_methods(): array {
		return [];
	}

	public function get_endpoint(): string {
		return 'script/' . $this->get_path();
	}

	public function get_path(): string {
		return $this->path;
	}

	public function get_name(): string {
		return '';
	}
}

```
