Routes.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. 'site_clearcache' => [
  28. 'path' => '/otadmin/site/clear-cache',
  29. 'target' => ApiController::class . '::clearSiteCacheAction',
  30. 'access' => 'public'
  31. ],
  32. 'site_setdomain' => [
  33. 'path' => '/otadmin/site/set-domain',
  34. 'target' => ApiController::class . '::setSiteCustomDomainAction',
  35. 'access' => 'public'
  36. ],
  37. 'site_resetperms' => [
  38. 'path' => '/otadmin/site/reset-perms',
  39. 'target' => ApiController::class . '::resetBeUserPermsAction',
  40. 'access' => 'public'
  41. ],
  42. 'site_index' => [
  43. 'path' => '/otadmin/site/index',
  44. 'target' => ApiController::class . '::updateRoutingIndexAction',
  45. 'access' => 'public'
  46. ],
  47. 'site_status' => [
  48. 'path' => '/otadmin/site/status',
  49. 'target' => ApiController::class . '::getSiteStatusAction',
  50. 'access' => 'public'
  51. ],
  52. 'scan' => [
  53. 'path' => '/otadmin/scan',
  54. 'target' => ApiController::class . '::scanAllAction',
  55. 'access' => 'public'
  56. ]
  57. ];