Files
piratepoet/tests/unit/API/JSON/APITestNamespacedEndpointStubV2.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
360 B
PHP

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