Routes.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 . '::setSiteDomainAction',
  35. 'access' => 'public'
  36. ],
  37. 'site_status' => [
  38. 'path' => '/otadmin/site/status',
  39. 'target' => ApiController::class . '::getSiteStatusAction',
  40. 'access' => 'public'
  41. ],
  42. 'scan' => [
  43. 'path' => '/otadmin/scan',
  44. 'target' => ApiController::class . '::scanAllAction',
  45. 'access' => 'public'
  46. ]
  47. ];