# jetformbuilder/3.6.6/modules/gateways/rest-api/rest-api-controller.php

JetFormBuilder — Dynamic Blocks Form Builder, version 3.6.6. 25 lines.

- Page: https://pluginprobe.com/plugins/jetformbuilder/3.6.6/code/modules/gateways/rest-api/rest-api-controller.php
- Raw: https://pluginprobe.com/plugins/jetformbuilder/3.6.6/raw/modules/gateways/rest-api/rest-api-controller.php
- Modified: 2023-11-20T11:46: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/jetformbuilder/3.6.6/code/modules/gateways/rest-api/rest-api-controller.php#L10-L20`.

```php
<?php

namespace JFB_Modules\Gateways\Rest_Api;

use JFB_Modules\Gateways\Paypal\Rest_Endpoints\Fetch_Pay_Now_Editor;
use JFB_Components\Rest_Api\Rest_Api_Controller_Base;

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
	die;
}

class Rest_Api_Controller extends Rest_Api_Controller_Base {

	public function routes(): array {
		return array(
			new Fetch_Pay_Now_Editor(),
			new Receive_Payments(),
			new Delete_Payments_Endpoint(),
			new Delete_Payment_Endpoint(),
			new Count_Payments_Endpoint(),
		);
	}
}

```
