Files
piratepoet/lib/API/Endpoints/Setup.php
Jonathan Labreuille 2e88d7cce0 Added API/Endpoint abstract class
- (re)Added Endpoints folder to both API and Router
- fixed syntax in namespaces
- xhr.responseJSON is returned to the fail()
- fixed Router endpoints (view in browser, cron,...)
2016-08-02 17:08:43 +02:00

25 lines
416 B
PHP

<?php
namespace MailPoet\API\Endpoints;
use \MailPoet\Config\Activator;
if(!defined('ABSPATH')) exit;
class Setup {
function __construct() {
}
function reset() {
try {
$activator = new Activator();
$activator->deactivate();
$activator->activate();
$result = true;
} catch(\Exception $e) {
$result = false;
}
return array(
'result' => $result
);
}
}