Files
piratepoet/tests/unit/API/JSON/APITestNamespacedEndpointStubV1.php
Vlad 8b13889c7a Adds one entry point for both JSON and MP APIs
Removes endpoints folder and moves versions to the root
JSON API folder
2017-05-16 20:56:55 -04:00

19 lines
352 B
PHP

<?php
namespace MailPoet\API\JSON\v1;
use MailPoet\API\JSON\Endpoint as APIEndpoint;
use MailPoet\API\JSON\Access as APIAccess;
if(!defined('ABSPATH')) exit;
class NamespacedEndpointStub extends APIEndpoint {
public $permissions = array(
'test' => APIAccess::ALL
);
function test($data) {
return $this->successResponse($data);
}
}