Use API versioning
This commit is contained in:
@@ -103,6 +103,7 @@
|
|||||||
|
|
||||||
// Run the import
|
// Run the import
|
||||||
MailPoet.Ajax.post({
|
MailPoet.Ajax.post({
|
||||||
|
api_version: window.mailpoet_api_version,
|
||||||
endpoint: 'MP2Migrator',
|
endpoint: 'MP2Migrator',
|
||||||
action: 'import',
|
action: 'import',
|
||||||
data: {
|
data: {
|
||||||
@@ -146,6 +147,7 @@
|
|||||||
$('#stop-import').attr('disabled', 'disabled');
|
$('#stop-import').attr('disabled', 'disabled');
|
||||||
// Stop the import
|
// Stop the import
|
||||||
MailPoet.Ajax.post({
|
MailPoet.Ajax.post({
|
||||||
|
api_version: window.mailpoet_api_version,
|
||||||
endpoint: 'MP2Migrator',
|
endpoint: 'MP2Migrator',
|
||||||
action: 'stopImport',
|
action: 'stopImport',
|
||||||
data: {
|
data: {
|
||||||
@@ -166,6 +168,7 @@
|
|||||||
*/
|
*/
|
||||||
skip_import: function () {
|
skip_import: function () {
|
||||||
MailPoet.Ajax.post({
|
MailPoet.Ajax.post({
|
||||||
|
api_version: window.mailpoet_api_version,
|
||||||
endpoint: 'MP2Migrator',
|
endpoint: 'MP2Migrator',
|
||||||
action: 'skipImport',
|
action: 'skipImport',
|
||||||
data: {
|
data: {
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace MailPoet\API\Endpoints;
|
namespace MailPoet\API\Endpoints\v1;
|
||||||
use MailPoet\API\Endpoint as APIEndpoint;
|
use MailPoet\API\Endpoint as APIEndpoint;
|
||||||
|
|
||||||
if(!defined('ABSPATH')) exit;
|
if(!defined('ABSPATH')) exit;
|
Reference in New Issue
Block a user