Routes.php 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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_just_make_it_work' => [
  28. 'path' => '/otadmin/site/just-make-it-work',
  29. 'target' => ApiController::class . '::justMakeItWorkSiteAction',
  30. 'access' => 'public'
  31. ],
  32. 'site_clearcache' => [
  33. 'path' => '/otadmin/site/clear-cache',
  34. 'target' => ApiController::class . '::clearSiteCacheAction',
  35. 'access' => 'public'
  36. ],
  37. 'site_setdomain' => [
  38. 'path' => '/otadmin/site/set-domain',
  39. 'target' => ApiController::class . '::setSiteCustomDomainAction',
  40. 'access' => 'public'
  41. ],
  42. 'redirect_add' => [
  43. 'path' => '/otadmin/redirect/add',
  44. 'target' => ApiController::class . '::addRedirectionAction',
  45. 'access' => 'public'
  46. ],
  47. 'site_resetperms' => [
  48. 'path' => '/otadmin/site/reset-perms',
  49. 'target' => ApiController::class . '::resetBeUserPermsAction',
  50. 'access' => 'public'
  51. ],
  52. 'site_status' => [
  53. 'path' => '/otadmin/site/status',
  54. 'target' => ApiController::class . '::getSiteStatusAction',
  55. 'access' => 'public'
  56. ],
  57. 'scan' => [
  58. 'path' => '/otadmin/scan',
  59. 'target' => ApiController::class . '::scanAllAction',
  60. 'access' => 'public'
  61. ],
  62. 'delete-user-created-pages' => [
  63. 'path' => '/otadmin/site/delete-user-created-pages',
  64. 'target' => ApiController::class . '::deleteUserCreatedPagesAction',
  65. 'access' => 'public'
  66. ]
  67. ];