first commit
This commit is contained in:
23
modules/ps_eventbus/controllers/front/apiCarts.php
Normal file
23
modules/ps_eventbus/controllers/front/apiCarts.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
use PrestaShop\Module\PsEventbus\Controller\AbstractApiController;
|
||||
use PrestaShop\Module\PsEventbus\Provider\CartDataProvider;
|
||||
|
||||
class ps_EventbusApiCartsModuleFrontController extends AbstractApiController
|
||||
{
|
||||
public $type = 'carts';
|
||||
|
||||
/**
|
||||
* @throws PrestaShopException
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function postProcess()
|
||||
{
|
||||
$cartDataProvider = $this->module->getService(CartDataProvider::class);
|
||||
|
||||
$response = $this->handleDataSync($cartDataProvider);
|
||||
|
||||
$this->exitWithResponse($response);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user