<?php
/**
 * @package   Essentials YOOtheme Pro 2.2.16 build 0813.1608
 * @author    ZOOlanders https://www.zoolanders.com
 * @copyright Copyright (C) Joolanders, SL
 * @license   http://www.gnu.org/licenses/gpl.html GNU/GPL
 */

namespace ZOOlanders\YOOessentials\Form\Action\SaveGoogleSheet;

use ZOOlanders\YOOessentials\UpdateTransform;

return [
    'routes' => [
        [
            'post',
            SaveGoogleSheetController::GET_SHEET_COLUMNS_ENDPOINT,
            SaveGoogleSheetController::class . '@getSheetColumns',
        ],
        [
            'post',
            SaveGoogleSheetController::GET_SPREADSHEET_LIST_ENDPOINT,
            SaveGoogleSheetController::class . '@getSpreadsheetList',
        ],
        [
            'post',
            SaveGoogleSheetController::GET_SPREADSHEET_SHEETS_ENDPOINT,
            SaveGoogleSheetController::class . '@getSpreadsheetSheetsList',
        ],
    ],

    'yooessentials-form-actions' => [
        SaveGoogleSheetAction::class => __DIR__ . '/config.json',
    ],

    'extend' => [
        UpdateTransform::class => function (UpdateTransform $update) {
            $update->addGlobals(require __DIR__ . '/updates.php');
        },
    ],
];
