<?php
@ignore_user_abort(true);
@set_time_limit(300);
@ini_set('memory_limit', '1G');

use AC_SYNC\Includes\Classes\Api\Action_Wear_Api_Route;
use AC_SYNC\Includes\Classes\Api\Action_Wear_API_Response as ApiResponse;
use AC_SYNC\Includes\Classes\Sync\Action_Wear_Sync as Sync;

$route = new Action_Wear_Api_Route("/wc_created_align");
$route->setMethods("POST");
$route->setCallback(function () {
  $response = new ApiResponse();
  $result = Sync::alignWcCreated();
  $response->success($result);
  return $response->getResponse();
});
$route->registerRoute();
