Routes.php 1.0 KB

123456789101112131415161718192021222324252627282930
  1. <?php
  2. use Opentalent\OtAdmin\Http\ApiController;
  3. // Defines the routes used to trigger the admin actions
  4. // @see https://docs.typo3.org/m/typo3/reference-coreapi/master/en-us/ApiOverview/BackendRouting/Index.html
  5. return [
  6. // Create a new organization's website
  7. 'site_create' => [
  8. 'path' => '/otadmin/site/create',
  9. 'target' => ApiController::class . '::createSiteAction',
  10. 'access' => 'public'
  11. ],
  12. 'site_delete' => [
  13. 'path' => '/otadmin/site/delete',
  14. 'target' => ApiController::class . '::deleteSiteAction',
  15. 'access' => 'public'
  16. ],
  17. 'site_undelete' => [
  18. 'path' => '/otadmin/site/undelete',
  19. 'target' => ApiController::class . '::undeleteSiteAction',
  20. 'access' => 'public'
  21. ],
  22. 'site_update' => [
  23. 'path' => '/otadmin/site/update',
  24. 'target' => ApiController::class . '::updateSiteConstantsAction',
  25. 'access' => 'public'
  26. ],
  27. ];