<?php

use Opentalent\OtCore\Http\ApiController;

// Defines the routes used to trigger the admin actions
// @see https://docs.typo3.org/m/typo3/reference-coreapi/master/en-us/ApiOverview/BackendRouting/Index.html

return [
    // Get a json array containing all of the opentalent structures
    'all-structures' => [
        'path' => '/otcore/structures/all',
        'target' => ApiController::class . '::getAllStructures',
        'access' => 'public'
    ],
    // Get a json array containing the data for the requested opentalent structure
    'get-by-id' => [
        'path' => '/otcore/structures/get',
        'target' => ApiController::class . '::getStructureById',
        'access' => 'public'
    ]
];
