Files
VITEC-website/packages/vitec/Configuration/Backend/AjaxRoutes.php
2026-08-28 13:57:54 +02:00

31 lines
1.1 KiB
PHP
Executable File

<?php
declare(strict_types=1);
use Evomedien\Vitec\Controller\Backend\ProductTextImportController;
use Evomedien\Vitec\Controller\Backend\StructuredDataController;
/**
* Backend AJAX routes for the VITEC extension.
*
* vitec_structureddata_generate — generate schema.org JSON-LD for a product;
* called by the FormEngine "Structured Data generieren" button. The URL is
* available to JS via TYPO3.settings.ajaxUrls['vitec_structureddata_generate'].
*/
return [
'vitec_structureddata_generate' => [
'path' => '/vitec/structureddata/generate',
'target' => StructuredDataController::class . '::generate',
],
// Click-to-edit in the product text import's "Current value" column:
// read the full raw value / write one field through DataHandler.
'vitec_product_field_get' => [
'path' => '/vitec/product/field/get',
'target' => ProductTextImportController::class . '::fieldGet',
],
'vitec_product_field_save' => [
'path' => '/vitec/product/field/save',
'target' => ProductTextImportController::class . '::fieldSave',
],
];